Skip to content
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

Remember position in playlist when file is (temporarily) inaccessible when unpausing #1395

Open
3 tasks done
PaperbackSpine opened this issue Mar 10, 2024 · 1 comment
Open
3 tasks done

Comments

@PaperbackSpine
Copy link

  • I have checked the FAQ for answers.
  • I have checked the Changelog that the issue is not already fixed.
  • I believe this issue is a bug, and not a general technical issue, question or feature requests that can be discussed on the forum.

Describe the bug
When a file in a playlist is (temporarily or not) inaccessible when unpausing its playback, Strawberry stops playback with an error

Could not read from resource.

../plugins/elements/gstfilesrc.c(379): gst_file_src_fill (): /GstPlayBin3:pipeline-32-pipeline/GstURIDecodeBin3:uridecodebin3/GstURISourceBin:urisourcebin235/GstFileSrc:filesrc235: system error: Invalid argument

This is correct behavior up to this point.

However, when resuming playback using the play/pause hotkey, or button, it will start playing the file at the top of the playlist.

To Reproduce

  1. Create a playlist. Include a file that's stored on a network drive, and put it somewhere other than the top entry in the playlist.
  2. Start playing this networked file. Pause its playback.
  3. Disconnect the network drive (or put the PC into sleep mode so the connection is lost.)
  4. Unpause. See the error message.
  5. Press the play/pause button again.

Expected behavior
Strawberry should remember its position in the playlist and re-attempt to play the file, like how it remembers its position when you fully close the Strawberry application. It'd be even better if it also remembered the position in the file, but that's a bit of a rare use-case.

Screenshots:
If applicable, add screenshots to help explain your problem.

System Information:

  • Operating system: Windows 10
  • Strawberry Version: 1.0.23

Additional context
The only time network drives get disconnected is when my system is put into sleep mode. When it wakes, network drives are automatically reconnected, but Strawberry can't resume playback because the file pointer is different.

Workaround
Don't unpause, but double click the paused entry in the playlist, forcing Strawberry to re-open the file and begin playback from the beginning.

Other workaround is to manually close Strawberry before putting the PC to sleep, and starting it back up after the system wakes.

@PaperbackSpine
Copy link
Author

Come to think of it, maybe a simpler way to phrase the bug might be

"When playback is stopped by an error, Strawberry should act as if the stop button was pressed by the user"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants