Closed
Bug 1120084
Opened 10 years ago
Closed 10 years ago
MSE: In case of error, appendBuffer, sourcebuffer never fire the error and updateend events
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, 1 obsolete file)
4.92 KB,
patch
|
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
As per spec:
http://w3c.github.io/media-source/#sourcebuffer-append-error
In case of error during appendBuffer, then the sourcebuffer append error algorithm should be called.
"This algorithm is called when an error occurs during an append. This algorithm takes a decode error parameter that indicates whether endOfStream() should be called.
1.Run the reset parser state algorithm.
2.Set the updating attribute to false.
3.Queue a task to fire a simple event named error at this SourceBuffer object.
3.Queue a task to fire a simple event named updateend at this SourceBuffer object.
4.If decode error is true, then run the end of stream algorithm with the error parameter set to "decode".
"
We don't do any of those steps..
We currently call endOfStream under all circumstances and that's it.
So we fire the updatestart event; and from that point on nothing more happens.
Assignee | ||
Comment 1•10 years ago
|
||
Partial implementation of Append Error Algorithm. We still should perform a 'Reset Parser State' algorithm, but our TrackBuffer implementation has little to do with what MSE spec describes, and some of the concepts do not apply here
Attachment #8547245 -
Flags: review?(cajbir.bugzilla)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jyavenard
Status: NEW → ASSIGNED
Updated•10 years ago
|
Priority: -- → P2
Comment 2•10 years ago
|
||
Comment on attachment 8547245 [details] [diff] [review]
Implement MSE's AppendErrorAlgorithm
Review of attachment 8547245 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/media/mediasource/SourceBuffer.h
@@ +139,5 @@
> double aTimestampOffset);
>
> + // Implement the "Append Error Algorithm".
> + // Will call endOfStream() with "decode" error if aDecodeError is true.
> + void AppendError(bool aDecoderError);
Reference spec number in comment if spec numbers are stable.
::: dom/media/mediasource/TrackBuffer.cpp
@@ +567,5 @@
>
> +void
> +TrackBuffer::ResetParserState()
> +{
> + // TODO
Raise a bug for this. Reference the bug in the TODO.
::: dom/media/mediasource/TrackBuffer.h
@@ +70,5 @@
> // Call ResetDecode() on each decoder in mDecoders.
> void ResetDecode();
>
> + // MSE's Reset Parser State
> + void ResetParserState();
Change comment to "Run MSE Reset Parser State Algorithm". If the spec numbers are stable, refer to the number.
Attachment #8547245 -
Flags: review?(cajbir.bugzilla) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Carrying r+, and rebase so it doesn't rely on asynchronous appendBuffer (bug 1118589)
Assignee | ||
Updated•10 years ago
|
Attachment #8547245 -
Attachment is obsolete: true
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0ba9865709b5
This was pushed to inbound earlier today.
Updated•10 years ago
|
Comment 5•10 years ago
|
||
Comment on attachment 8550036 [details] [diff] [review]
Implement MSE's AppendErrorAlgorithm
Approval Request Comment
[Feature/regressing bug #]: MSE
[User impact if declined]: Less consistent testing.
[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 #8550036 -
Flags: approval-mozilla-beta?
Attachment #8550036 -
Flags: approval-mozilla-aurora?
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Updated•10 years ago
|
Updated•10 years ago
|
Attachment #8550036 -
Flags: approval-mozilla-beta?
Attachment #8550036 -
Flags: approval-mozilla-beta+
Attachment #8550036 -
Flags: approval-mozilla-aurora?
Attachment #8550036 -
Flags: approval-mozilla-aurora+
Comment 7•10 years ago
|
||
Comment 8•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•