Closed
Bug 1120086
Opened 10 years ago
Closed 10 years ago
MSE: Transition from MediaSource::readyState "ended" to "open" can't happen
Categories
(Core :: Audio/Video, defect, P2)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: jya, Assigned: jya)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
3.40 KB,
patch
|
cajbir
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
As per spec:
http://w3c.github.io/media-source/#sourcebuffer-prepare-append
"
4.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 .
"
readyState is in the "ended" state if endOfStream() was called.
However, endOfStream() will call SourceBuffer::Ended() which in turns call:
mTrackBuffer->DiscardDecoder() which will clear mCurrentDecoder.
Subsequent calls to SourceBuffer::appendBuffer will fail, as the current decoder in the track buffer has been cleared:
TrackBuffer::AppendDataToCurrentResource(const uint8_t* aData, uint32_t aLength)
{
MOZ_ASSERT(NS_IsMainThread());
if (!mCurrentDecoder) {
return false;
}
If endOfStream was called without an error; the TrackBuffer's current decoder shouldn't be discarded.
Assignee | ||
Comment 1•10 years ago
|
||
Allow readyState transition from ended to open.
Attachment #8547250 -
Flags: review?(cajbir.bugzilla)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jyavenard
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•10 years ago
|
||
Update test results. We won't fail the test anymore
Attachment #8547457 -
Flags: review?(cajbir.bugzilla)
Assignee | ||
Comment 3•10 years ago
|
||
Update test results. We won't fail the test anymore
Attachment #8547481 -
Flags: review?(cajbir.bugzilla)
Assignee | ||
Updated•10 years ago
|
Attachment #8547457 -
Attachment is obsolete: true
Attachment #8547457 -
Flags: review?(cajbir.bugzilla)
Updated•10 years ago
|
Priority: -- → P2
Updated•10 years ago
|
Attachment #8547250 -
Flags: review?(cajbir.bugzilla) → review+
Updated•10 years ago
|
Attachment #8547481 -
Flags: review?(cajbir.bugzilla) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 8547481 [details] [diff] [review]
Update w3c web reference tests
Actually, this test was required by another fix in bug 1120075
Attachment #8547481 -
Attachment is obsolete: true
Assignee | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
Comment on attachment 8547250 [details] [diff] [review]
Re-open SourceBuffer after call to appendBuffer if in ended state
Approval Request Comment
[Feature/regressing bug #]: MSE
[User impact if declined]: Less consistent testing, sites more likely to use Flash for video.
[Describe test coverage new/current, TBPL]: stable on inbound. presuming green on m-c.
[Risks and why]: MSE-specific, so low.
[String/UUID change made/needed]: None.
Attachment #8547250 -
Flags: approval-mozilla-beta?
Attachment #8547250 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Updated•10 years ago
|
Updated•10 years ago
|
Attachment #8547250 -
Flags: approval-mozilla-beta?
Attachment #8547250 -
Flags: approval-mozilla-beta+
Attachment #8547250 -
Flags: approval-mozilla-aurora?
Attachment #8547250 -
Flags: approval-mozilla-aurora+
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•