[Bug 26316] [MSE] End of stream algorithm closes, re-opens MediaSource

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26316

--- Comment #6 from Aaron Colwell <acolwell@google.com> ---
Jer: I don't think your proposed fix is quite right since deferring the
readyState transition causes SourceBuffer.buffered to return a different value
than it currently does.

I can think of 2 possible alternate solutions:
- Replace step 4 in the "duration change algorithm" with steps 7-13 from
remove().
- Change step 4 of "duration change algorithm" to only call remove() if any
SourceBuffer.buffered contains one or more ranges that intersect with [new
duration, old duration). I believe in the case of endOfStream() this should
always be false since we are using the end ranges to determine the new
duration.

Any preference?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 24 July 2014 18:03:26 UTC