Closed Bug 1062669 Opened 6 years ago Closed 6 years ago

During initial SourceBuffer creation, clearly demarcate which SBs require init data before running the parent ReadMetadata

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: kinetik, Assigned: kinetik)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

When the first SourceBuffer is created for a MediaSource, dispatch an event to the main thread to calculate which SourceBuffers have been added before the main thread reached a stable state.  Treat these decoders as the ones for which we must have the first init segment present before allowing MediaSourceReader::ReadMetadata to run; any SourceBuffers appended later would be initialized lazily and must then conform to the track configuration created by the initial SourceBuffers.

See also: https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#sourcebuffer-init-segment-received

This depends on the changes in bug 1059058 (and potentially bug 1041396), and would be useful to implement before making MSE widely available to provide reliable/consistent behaviour.
Assignee: nobody → kinetik
Status: NEW → ASSIGNED
Attached patch p1: v1Splinter Review
Attachment #8484631 - Flags: review?(cajbir.bugzilla)
Flags: in-testsuite?
Attachment #8484631 - Flags: review?(cajbir.bugzilla) → review+
https://hg.mozilla.org/mozilla-central/rev/2e6011266bea
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Depends on: 1069730
You need to log in before you can comment on or make changes to this bug.