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

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

--- Comment #4 from Jer Noble <jer.noble@apple.com> ---
(In reply to Jer Noble from comment #3)
> (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.

Note, however, that duration must either have been set explicitly from script,
or a duration must have been present in the initialization segment, for
duration to be greater than the buffered range.

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

Received on Monday, 14 July 2014 21:34:10 UTC