[Bug 17071] Define how presentation duration is set & updated

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

--- Comment #1 from Aaron Colwell <acolwell@chromium.org> 2012-05-15 23:35:45 UTC ---
A possible solution to consider:

Make duration attribute writable and don't allow a transition to HAVE_METADATA
until it is set by the web application or the first initialization segment is
appended with a duration. From that point on the duration can only be modified
by the web application and future initialization segments won't effect the
duration. If the duration becomes shorter than the previous value, all data in
the source buffer beyond the duration will be flushed. If the playback position
is beyond the new duration, the HTMLMediaElement will act as if it just reached
the end of the presentation and fire all appropriate events.

If we feel it's necessary to allow the duration to be updatable by a future
initialization segment, then we could simply have the web application set the
duration to NaN. (I'm not thrilled about this, but interested in comments.)

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 15 May 2012 23:35:48 UTC