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

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

            Bug ID: 26316
           Summary: [MSE] End of stream algorithm closes, re-opens
                    MediaSource
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Source Extensions
          Assignee: adrianba@microsoft.com
          Reporter: jer.noble@apple.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-media@w3.org

2.4.7 End of stream algorithm
> 1. Change the readyState attribute value to "ended".
> 2. Queue a task to fire a simple event named sourceended at the MediaSource.
> 3. ↪︎ If error is not set
>  3.1 Run the duration change algorithm with new duration set to the highest end time reported by the buffered attribute across all SourceBuffer objects in sourceBuffers.

2.4.6 Duration change
> 4. If the new duration is less than old duration, then call remove(new duration, old duration) on all objects in sourceBuffers.

3.2 Methods, remove
> 6. If the readyState attribute of the parent media source is in the "ended" state then run the following steps:
>  6.1 Set the readyState attribute of the parent media source to "open""
>  6.2 Queue a task to fire a simple event named sourceopen at the parent media source .

Calling endOfStream() on a MediaSource with a partially-appended SourceBuffer
will result in:

MediaSource.readyState: open -> ended
MediaSource.readyState: ended -> open
MediaSource 'sourceended' fires
MediaSource 'sourceopen' fires

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

Received on Saturday, 12 July 2014 04:40:36 UTC