Change the default music player in google assistant sdk - google-assistant-sdk

Is there a way to change the default music player in the google assistant sdk. Should I try using IFTTT or is there a better way? For refernce I am running it on a raspberry pi 3.

According to a teardown of the latest Google Home app apk, devices using the Google Home SDK will soon be able to be controled via the Google Home app.
Untill that's released however, and I know it's a mouthful, you can say
Cast song by artist from music provider to chromecast name
For example
Cast Creep by Radiohead from Google Play Music to The Living Room Chromecast

Related

Control music of other apps within my app

I'm currenty trying to find out if it's possible to control the music of other apps, e.g. Spotify, within my app. The two solutions I found are:
using the SDK of the specific service (e.g. Spotify SDK)
take over the audio session in my app, but this only allows me to stop/ play the music
I'm trying to find a solution that provides me with pause, play, forward, backward control and access to the title, maybe also the cover. Then I came across the "Sony Headphones Connect" app. It has a page with media control buttons, the title of the current song and is does not require any kind of sing in to Spotify or something else.
Picture is from the app from the App Store, I tested the controls and they work.
So somehow it must be possible, does anyone have an idea how I can achieve my desired result or how the "Sony Headphones Connect" app is handling this issue?
I think I found the answer, the "Sony Headphones Connect" app is controlling the music over bluetooth. So it's not directly possible to control the music of another app.

How Spotify and Google’s Waze integration component works?

Lately, I have seen that Waze shows a Spotify's button on top of its map.
I was wondering how does it work?
At first, when you press the Spotify button you are getting redirected to Spotify via an url-scheme (probably spotify://waze?example) then you approve the use and get back with a session (with a waze://) I guess.
So I understand the binding process but how does the Spotify component work inside the Waze app. Let's say I'm pressing the pause button or next song. What's happen?
One thing I have noticed. To resume playing go to the next song or add to favorites they are using some other functionality that I don't recognize
It's two-way integration between the services according to the Waze Official Blog + iOS
Also, Spotify has Spotify iOS SDK which allows you to implement some features in your own apps.

Chromecast support for youtube videos played via the youtube player API

When I watch videos in the official youtube app on my Android device, I see the familiar cast icon in the toolbar, which sends the playing video to my chromecast.
I want to write my own app that uses the official youtube player API for Android. Playing with the Android samples (https://developers.google.com/youtube/android/player/sample-applications), I've noticed that the chromecast icon is missing.
What is the best way to add chromecast support to my app which uses YoutubePlayerView or YoutubePlayerFragment to play videos?
Well, if you want to use chromecast for the YouTube API, then you can start by knowing how to integrate Cast in an Android App. You will learn here the basic information that you need to know. Also, check this YouTube Android Player API to know how it is works.
I found here a demo that shows how to integrate YouTube APIs with Chromecast. It is designed for developers who are learning about the Chromecast SDK or YouTube APIs, or for those wishing to run a code lab on various Google technologies.

How to find out the current song playing on Spotify from an iOS app?

I'm developing an iOS app that needs to get the artist's name and the song's title from a track playing on Spotify in background.
This is the flow:
User is listening something on Spotify (web or native app)
User opens my app
App finds out which track is playing
Another track plays
App detects this and get the new track metadata
I tried to get that using the MediaPlayer framework (MPMusicPlayerController class) but nothing happens.
I looked in the Spotify SDK Api reference and found nothing too.
Is it possible ?
Thanks!

How To Push Music Playable Data Streamed From Spotify To A Device That Does Not Use The SDK Provided By Spotify

I apologise for the possibility of the title of my question would lead to confusion of the problem. For that I will explain my purpose in detail.
We are currently developing our own wifi speaker which is built with MIPS. The speaker comes with an app that will be used to manage it. One of the features that would we would like to include in the app is accessing contents of Spotify and be able to play them on the speakers.
Unfortunately, after going through the iOS SDK Documentation, and did some tests on Web API Console provided by the official of Spotify, I noticed that Spotify does not allow developers to directly get URL of a song, except for preview purposes. I also wasn't able to find any way to get the data bytes of the music streamed from the server. Every content comes with a corresponding URI which is used for a request.
For the device(WiFi Speaker) part, we recently tried to contact Spotify and ask for an SDK that can be used for development. However, one problem is that Spotify told us that they have SDK for x86, and ARMs architecture only. They don't have MIPS.
Now, here are my questions:
Is there any way for me to push music from an app to the WiFi Speakers without having to use SDK (for backend device)?
If Spotify can provide an SDK for our device, then how can we integrate the SDK with our platform?
I'll explain my 2nd question for clarity. Like for instance, in Android and iOS, these are popular platforms and are widely used by mobile devices. So if they provide SDKs for the two OS, then they can use default system frameworks to access the player for playing the content. (In iOS, it's the AVFoundation Framework). However, if Spotify were able to provide the SDK that we need, how would we able to integrate that with our own platform?
I will answer your question no 1:
You should be able to push music from an app using a buffer that you can read from using Core Audio and also forward to a device of your choice. I think what you are looking for can be found at CocoaLibSpotify

Resources