This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Changing the duration while an append or remove is pending should not be allowed. One specific problem is that reducing the duration relies on a remove operation, which can't be started if we are already in an updating situation. We think that an INVALID_STATE_ERR exception should be thrown before step 2 in 2.4.6 Duration change.
As far as I can tell, duration changes triggered by the JavaScript are already blocked by pending appends. - Step 3 on the duration setter algorithm prevents setting during append.(https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#widl-MediaSource-duration) - The duration change triggered by endOfStream() is protected by Step 2 in that algorithm. (https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#widl-MediaSource-endOfStream-void-EndOfStreamError-error) I believe all other duration change calls are the result of algorithms run during an append so I believe it should be ok. Am I missing something?
You're right - we missed it just focusing on reviewing the algorithm section.