Closed Bug 1123202 Opened 10 years ago Closed 10 years ago

Call to removeSourceBuffer should abort pending buffer append

Categories

(Core :: Audio/Video, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox36 --- fixed
firefox37 --- fixed
firefox38 --- fixed

People

(Reporter: jya, Assigned: jya)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Per spec: http://w3c.github.io/media-source/#widl-MediaSource-removeSourceBuffer-void-SourceBuffer-sourceBuffer "When this method is invoked, the user agent must run the following steps: 1.If sourceBuffer specifies an object that is not in sourceBuffers then throw a NotFoundError exception and abort these steps. 2.If the sourceBuffer.updating attribute equals true, then run the following steps: 1.Abort the buffer append and stream append loop algorithms if they are running. 2.Set the sourceBuffer.updating attribute to false. 3.Queue a task to fire a simple event named abort at sourceBuffer. 4.Queue a task to fire a simple event named updateend at sourceBuffer. " Currently it does nothing.
Blocks: 1123203
Priority: -- → P2
properly issue abort/updateend when a source buffer is removed.
Attachment #8553001 - Flags: review?(cajbir.bugzilla)
Assignee: nobody → jyavenard
Status: NEW → ASSIGNED
Comment on attachment 8553001 [details] [diff] [review] Execute abort() when detaching source buffer Review of attachment 8553001 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/media/mediasource/SourceBuffer.h @@ +78,5 @@ > void AppendBuffer(const ArrayBuffer& aData, ErrorResult& aRv); > void AppendBuffer(const ArrayBufferView& aData, ErrorResult& aRv); > > void Abort(ErrorResult& aRv); > + void Abort(); Add comment differentiating this from the Abort function above it.
Attachment #8553001 - Flags: review?(cajbir.bugzilla) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Comment on attachment 8553001 [details] [diff] [review] Execute abort() when detaching source buffer 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, TreeHerder]: Landed on m-c. [Risks and why]: This is an MSE-specific change for spec compliance. Risk is low. [String/UUID change made/needed]: None.
Attachment #8553001 - Flags: approval-mozilla-beta?
Attachment #8553001 - Flags: approval-mozilla-aurora?
Attachment #8553001 - Flags: approval-mozilla-beta?
Attachment #8553001 - Flags: approval-mozilla-beta+
Attachment #8553001 - Flags: approval-mozilla-aurora?
Attachment #8553001 - Flags: approval-mozilla-aurora+
There's another place that I had missed
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
See Also: → 1128115
Spawned into bug 1128115. This patch actually fixed SourceBufferList.Remove rather than MediaSource.removeSourceBuffer.
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: