Playback stuck when failed to locate next period due to floating point error #882
Labels
status: archived
Archived and locked; will not be updated
type: bug
Something isn't working correctly
Milestone
Hi, I am playing a multi-period DASH, and encounter playback stuck.
Shaka tried to locate the period by (last period start time + last segment end time in period), but the number ended up slightly less than the start time of the next period due to floating point error. Consequently, Shaka incorrectly looked up the the segment from the last period, and never advance to the next one.
There were console logs showing that Shaka tried to buffer segment at time 5.955944499999999s, but failed and keep retrying.
The manifest looks like follows:
I verified that the error is caused by floating point error by computing 1.001 + 4.9549445 in console, which gives 5.955944499999999.
(1.001 is start time of period "2" and 4.9549445 is the end time of the last segment in period "2" after fitting to the period boundary between period "2" and "3").
I have opened similar issue before (#694) but seems the fix is incomplete.
Thanks in advance.
The text was updated successfully, but these errors were encountered: