mopidy / mopidy-gmusic

DEPRECATED (Mopidy extension for playing music from Google Play Music)
https://mopidy.com
Apache License 2.0
214 stars 60 forks source link

Stream gets interrupted when a next song is played. #177

Closed ErwinP closed 3 years ago

ErwinP commented 7 years ago

Hi,

I'm streaming to a chromecast audio using icecast2, and always get a disconnection when a next song is about to be played. I assume that this is due to the fact that the stream still gets interrupted, despite that gappless playback should be enabled by default in version 2.1.0?

Is there anything that can be done about this?

Thank you in advance, Erwin

trygveaa commented 7 years ago

Have you tried configuring a fallback stream, as described here?

ErwinP commented 7 years ago

No I didn't.. extremely stupid of me, I didn't scroll down enough to read that. I'm terribly sorry.

However, the stream still stops when changing tracks, despite the fallback. If I read correctly this time, this shouldn't be the case anymore?

Thank you in advance, Erwin

EDIT: To clarify: when it changes tracks automatically, this now works, indicating that the fallback stream works. Changing tracks manually, however, still provoces a drop of the stream (and thus a disconnection).

EDIT2: This is from the error log of icecast2, upon changing a song:

[2017-07-28  09:53:43] INFO source/source_read End of Stream /mopidy.mp3
[2017-07-28  09:53:43] INFO source/source_shutdown Source "/mopidy.mp3" exiting
[2017-07-28  09:53:43] INFO source/source_set_fallback fallback set on /mopidy.mp3 to /mopidy[320].mp3(18231) with 1 listeners
[2017-07-28  09:53:43] INFO fserve/open_fh lookup of fallback file "/mopidy[320].mp3" (18231)
[2017-07-28  09:53:43] INFO mpeg/mpeg_complete_frames no frame sync on 192.168.0.205, re-checking after skipping 25 (8192)
[2017-07-28  09:53:43] INFO mpeg/check_for_mp3 MPEG 2.5 Layer 3 detected (8000, 2) on 192.168.0.205
[2017-07-28  09:53:43] INFO source/source_client_read no more listeners on /mopidy.mp3
[2017-07-28  09:53:43] INFO source/_free_source freeing source "/mopidy.mp3"
[2017-07-28  09:53:45] INFO connection/_handle_source_request Source logging in at mountpoint "/mopidy.mp3"
[2017-07-28  09:53:45] INFO source/source_startup sources count is now 1
[2017-07-28  09:53:45] INFO source/source_apply_mount Applying mount information for "/mopidy.mp3"
[2017-07-28  09:53:45] INFO source/source_startup source /mopidy.mp3 is ready to start
[2017-07-28  09:53:45] INFO source/source_set_override for /mopidy.mp3
[2017-07-28  09:53:45] INFO fserve/fserve_set_override move clients from /mopidy[320].mp3 to /mopidy.mp3
[2017-07-28  09:53:45] INFO source/source_init Source /mopidy.mp3 initialised
[2017-07-28  09:53:45] INFO source/source_read listener count on /mopidy.mp3 now 0

So not sure if this is mopidy related, icecast2 related or home-assistant (managing the mpd service) related :-/

MaxG88 commented 6 years ago

Hi, I know that this issue is more than a year old, but have you ever found a solution to your problem? I'm having the same issue, and for now I managed to work around the issue by having Home Assistant seek to the last few seconds of a given track instead of going straight to the next track. However, this is not ideal...

jodal commented 3 years ago

Closing because Google Play Music has been shut down, and this project is being discontinued.