google-home-notifier icon indicating copy to clipboard operation
google-home-notifier copied to clipboard

Sending command pauses music and doesn't resume

Open Mrono opened this issue 8 years ago • 3 comments

Mrono avatar Feb 11 '17 02:02 Mrono

I don't think it "pauses" it - it just preempts whatever is playing. Keep in mind, this script doesn't really do anything specific with Home - it just casts some audio to a Chromecast audio receiver, which Home is one of.

I think it may be possible to query for current stream and position and restore afterwards.

But what really is needed is an announcement service for Home from Google (which probably would make this script unnecessary.)

I note that e.g. Google's timers reduce volume of any music playing, and restore it when done with announcement. Google needs to expose that functionality, IMO.

jtara avatar Mar 06 '17 19:03 jtara

Once I looked into how it worked I realized that with current apis it's not possible. Since you're sending an mp3 stream to the home it will stop whatever is playing, just like if you cast the audio from your phone

Mrono avatar Mar 06 '17 20:03 Mrono

Did anyone found a way to control that "resume"?

PS: I have made PHP script with MySQL which acts as a DNS server for this and URL is static all the time. If you are interested, I can push it online to github.

markosole avatar Mar 03 '18 15:03 markosole