-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playback Stops in the Middle of Streaming #175
Comments
Hi, I am having the same issue as well. However, everything works fine on a chromecast. |
This just started happening to me about a week ago with untouched code that has worked for years, almost exactly as shown above except that I'm using |
Same issue for me. The code was working long time but the music stops randomly. Does anyone already have a workaround or an idea how to debug this? |
I solved it by downloading the whole file and then playing from the local version. Because the download finishes before Google expires the link, it doesn't get cut off. A bit of a nuisance but it does work. |
Thanks. But not really a satisfying solution :( |
It means that my code behaves as it did before Google broke it so I'm ok with it. |
Good point. |
@gallmerci Great job! @stefan-sherwood You downloaded the file? I have some songs on my computer that I use for testing, but Google Home automatically stops a song after ~10 seconds. I am aware that the link expires before the song finishes, so how were you able to overcome this problem? |
I'm using Python 3.7 on Windows 10. I stripped out a bunch of error handling to make it easier to read.
|
I'm writing an application that leverages both
pychromecast
andgmusicapi
to create a collaborative music queue to stream to my Google Home. I send streaming URLs to my Google Home like so:My Google Home chimes, letting me know that a new app has started, and shortly after, the music begins playing. However, around 75% of the way through the song, playback stops, and it cannot be restarted with successive calls to
play_media()
or with voice commands.According to this issue on gmusicapi it appears to be happening because the
stream_url
is only valid for ~90 seconds, and the song hasn't completely buffered.Is it possible in
play_media()
to force a complete load of the song instead of a streamed buffer?The text was updated successfully, but these errors were encountered: