This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Currently step 5 of the appendArrayBuffer|Stream methods reopens the media source if its state is "ended". However, the timestampOffset throws INVALID_STATE_ERR in this situation. This means that if you can't set the timestamp offset and then append without doing something else to cause the media source to be reopened first. Proposal: Change step 3 of the timestampOffset property setting to match steps 4 and 5 of appendArrayBuffer: "If the readyState attribute of the parent media source is not in the "open" state, then throw an INVALID_STATE_ERR exception and abort these steps." becomes "If the readyState attribute of the parent media source is in the "closed" state then throw an INVALID_STATE_ERR exception and abort these steps. If the readyState attribute of the parent media source is in the "ended" state then run the following steps: 1.Set the readyState attribute of the parent media source to "open" 2.Queue a task to fire a simple event named sourceopen at the parent media source."
Created attachment 1326 [details] Proposed patch Proposed patch updating the steps for timestampOffset.
Changes committed. https://dvcs.w3.org/hg/html-media/rev/d5956e93b991 Proposed patch applied.