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

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

--- Comment #3 from Jer Noble <jer.noble@apple.com> ---
(In reply to Matt Wolenetz from comment #2)
> I'm not sure that I understand the problem.
> As part of endOfStream(), "If the updating attribute equals true on any
> SourceBuffer in sourceBuffers, then throw an INVALID_STATE_ERR exception and
> abort these steps."
> This occurs prior to running any of the end of stream algorithm steps.
> If the agent was in the middle of a SourceBuffer.append() operation, then
> updating should be true and INVALID_STATE_ERR should result on an attempt by
> the app to call endOfStream().
> Do I misunderstand the scenario? I'm quoting from the latest editor's draft
> (08 July 2014)

I believe the source of the misunderstanding is that a single append()
operation may not append samples for [0, duration).  So after one or more
append() operations:

- "updateend" is fired
- /updating/ is unset
- duration is N
- buffered is (0, M), where M < N.

Calling endOfStream() in these circumstances will lead to the events listed in
the initial bug report.

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

Received on Monday, 14 July 2014 21:30:46 UTC