Opened 5 years ago
Last modified 5 years ago
#15443 new bug
Media Player continue from last position issues
Reported by: | smallstepforman | Owned by: | stippi |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Applications/MediaPlayer | Version: | R1/Development |
Keywords: | MediaPlayer continue from last position | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Several issues with MediaPlayer file caching mechanism. It will attempt to remember last played position, and when restarted it will attempt to continue where from it's last position.
The first issue is when the file itself changes - eg, I'm working on a video editor for Haiku and reusing the same out file, and testing the created files with MediaPlayer (eg. test.mp4). MediaPlayer will typically start from the last played frame (anticipating continuation), ie. only play a single frame and terminate. Not ideal. If the previous played time is near the end, Media Player should set seek time to zero (beginning of file). Also, if the modification time is different, it should also set seek time to zero.
The second issue was really interesting. I created a test.mp4 file with both Audio and Video tracks. The next file I created was test.ogg with only an audio track (so I now have 2 files, test.mp4 and test.ogg). When starting MediaPlayer on the test.ogg file, it did something wonderful - play the video from the test.mp4 file, and the audio from test.ogg. Delightful to see (and surprising), but most definately wrong.
The second issue seems to be explained and tracked in https://dev.haiku-os.org/ticket/11500#comment:19 . Of note, you were lucky to find that
bugfeature by one of the more obvious paths, there are paths that are more "twilight zone" than this ;-)