Media Player continue from last position issues
|Reported by:||smallstepforman||Owned by:||stippi|
|Keywords:||MediaPlayer continue from last position||Cc:|
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.