Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cmdrkotori
Copy link
Member

Fake a file end event when a file does not properly initialize.

Consider the case where a stream is opened but fails to properly initialize such as the url https://chiru.no:8000/stream.mp3. In these scenarios libmpv would finish playback before it starts, and the player would be stuck in the Buffering state. We need to progress to the next file in the playlist. We need to get out of the Buffering state when there is no file after us in the playlist. So send a stopped state event and jump to the code that handles an end of file event. This mimics the behviour of mpc-hc from my tests.

Fake a file end event when a file does not properly initialize.

Consider the case where a stream is opened but fails to properly
initialize such as the url https://chiru.no:8000/stream.mp3.  In these
scenarios libmpv would finish playback before it starts, and the player
would be stuck in the Buffering state.  We need to progress to the next
file in the playlist.  We need to get out of the Buffering state when
there is no file after us in the playlist.  So send a stopped state
event and jump to the code that handles an end of file event.  This
mimics the behviour of mpc-hc from my tests.
@cmdrkotori cmdrkotori merged commit f914ca6 into mpc-qt:master Sep 9, 2024
@cmdrkotori cmdrkotori deleted the early-stop branch September 9, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant