Playback of some static MPD doesn't automatically start in Chrome, possibly due to floating point error in MSE interface #1309
Labels
status: archived
Archived and locked; will not be updated
type: bug
Something isn't working correctly
Milestone
Have you read the FAQ and checked for duplicate open issues?: Yes
What version of Shaka Player are you using?: v2.3.2
Can you reproduce the issue with our latest release version?: Yes
Can you reproduce the issue with the latest code from
master
?: YesAre you using the demo app or your own custom app?: Demo app
What browser and OS are you using?: Chrome, Windows or Linux
What are the manifest and license server URIs?: Attached manifest
What did you do? Load static asset
What did you expect to happen? Playback automatically start after load
What actually happened? Need manual seek to start playback
I loaded a static MPD in Shaka player in Chrome and expect it to automatically start playing.
But the loading indicator keep spinning, and console logs showed that it keep attempting gap-jumping to 0.062633s.
I need to do a manual seek on the seek bar to get the MPD playing.
Chrome's media-internal page showed that the seek_target was at 0.062632s, instead of 0.062633s
The issue can only be reproduced in Chrome, but not Firefox, and happenens on both Windows and Linux.
I tried adding a small number to the gap-jumping code in "playhead.js", and the problem seems resolved:
this.movePlayhead_(currentTime, jumpTo);
to
this.movePlayhead_(currentTime, jumpTo + Number.EPSILON);
So I think the issue is likely due to floating-point precision in the MSE interface of Chrome.
The text was updated successfully, but these errors were encountered: