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

RESOLVED FIXED in mozilla35

Status

()

RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: kinetik, Assigned: kinetik)

Tracking

(Blocks: 1 bug)

Trunk
mozilla35
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite ?

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

4 years ago
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)

Updated

4 years ago
Assignee: nobody → kinetik
Status: NEW → ASSIGNED
(Assignee)

Comment 1

4 years ago
Created attachment 8484631 [details] [diff] [review]
p1: v1
Attachment #8484631 - Flags: review?(cajbir.bugzilla)
(Assignee)

Updated

4 years ago
Flags: in-testsuite?

Updated

4 years ago
Attachment #8484631 - Flags: review?(cajbir.bugzilla) → review+
https://hg.mozilla.org/mozilla-central/rev/2e6011266bea
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
(Assignee)

Updated

4 years ago
Depends on: 1069730
You need to log in before you can comment on or make changes to this bug.