SourceBuffer.appendBuffer() can require its MediaSource's attached media element to queue progress and/or durationchange events, and so the media element needs to live long enough to do this. Similarly MediaSource.endOfStream() can generate suspend and/or durationchange events. This is currently not a direct problem due to bug 1114885 and the media element always NETWORK_LOADING even though it should be NETWORK_IDLE after MediaSource.endOfStream() is called (at least) if no frames have been evicted.
Attachment #8542414 - Flags: review?(roc) → review+
5 years ago
Priority: -- → P2
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Comment on attachment 8542414 [details] [diff] [review] keep media element alive from attached MediaSource r? Approval Request Comment [Feature/regressing bug #]: MSE [User impact if declined]: Less consistent testing, sites more likely to serve Flash video. [Describe test coverage new/current, TBPL]: landed on m-c. [Risks and why]: Low. This does affect non-MSE code, but it straightforward. [String/UUID change made/needed]: None.
Attachment #8542414 - Flags: approval-mozilla-aurora?
Attachment #8542414 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.