Closed
Bug 1123189
Opened 11 years ago
Closed 11 years ago
Queue "durationchange" instead of dispatching synchronously
Categories
(Core :: Audio/Video, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: karlt, Assigned: jya)
References
Details
Attachments
(2 files, 4 obsolete files)
|
5.56 KB,
patch
|
cpearce
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
|
2.39 KB,
patch
|
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Queuing durationchange from MediaDecoder::DurationChanged() is particularly
important for MediaSourceDecoder, which calls the function synchronously from
content-exposed methods, such as during the MediaSource duration setter for
example, but is also required for all media elements:
http://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html#offsets-into-the-media-resource
"When the length of the media resource changes to a known value (e.g. from being unknown to known, or from a previously established length to a new length) the user agent must queue a task to fire a simple event named durationchange at the media element."
This would seem consistent with efforts to queue timeupdate, abort, and
emptied events.
https://hg.mozilla.org/mozilla-central/rev/a6d06ecdfde1
https://hg.mozilla.org/mozilla-central/rev/e5ae3b72e03c
| Reporter | ||
Comment 1•11 years ago
|
||
| Assignee | ||
Comment 2•11 years ago
|
||
Queue durationchange event instead of firing it simultaneously
Attachment #8551080 -
Flags: review?(karlt)
| Assignee | ||
Updated•11 years ago
|
Assignee: karlt → jyavenard
| Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 8551080 [details] [diff] [review]
Queue "durationchange" instead of dispatching synchronously
Yes, this is a subset of my patch in comment 1 [1].
As this affects non-MSE media elements, I'd still like to ask cpearce to look at it, in case he is aware of any unexpected side-effects.
I think we can also keep the removal of the now unused MediaDecoderOwner::DispatchEvent().
[1] https://hg.mozilla.org/try/rev/cf705732766f
Attachment #8551080 -
Flags: review?(karlt) → review+
| Reporter | ||
Comment 4•11 years ago
|
||
Attachment #8551502 -
Flags: review?(cpearce)
| Assignee | ||
Comment 5•11 years ago
|
||
| Assignee | ||
Comment 6•11 years ago
|
||
Fix mochitest test_DurationChanged.html
Attachment #8551509 -
Flags: review?(karlt)
Updated•11 years ago
|
Attachment #8551502 -
Flags: review?(cpearce) → review+
| Assignee | ||
Updated•11 years ago
|
Attachment #8551080 -
Attachment is obsolete: true
| Assignee | ||
Comment 7•11 years ago
|
||
Fix mochitest test_DurationChanged.html. Patch wasn't properly refreshed.
Attachment #8551525 -
Flags: review?(karlt)
| Assignee | ||
Updated•11 years ago
|
Attachment #8551509 -
Attachment is obsolete: true
Attachment #8551509 -
Flags: review?(karlt)
| Assignee | ||
Comment 8•11 years ago
|
||
sorry for that, queue being messed up
Attachment #8551548 -
Flags: review?(karlt)
| Assignee | ||
Updated•11 years ago
|
Attachment #8551525 -
Attachment is obsolete: true
Attachment #8551525 -
Flags: review?(karlt)
| Reporter | ||
Comment 9•11 years ago
|
||
Comment on attachment 8551548 [details] [diff] [review]
Fix mochitest
Yes, looking at http://www.w3.org/TR/2014/CR-media-source-20140717/#h4_sourcebuffer-coded-frame-processing duration should be queued after loadeddata.
Attachment #8551548 -
Flags: review?(karlt) → review+
| Assignee | ||
Comment 10•11 years ago
|
||
As per IRC discussion, using sourceended event trigger, as we don't have to wait for the video to play
| Assignee | ||
Updated•11 years ago
|
Attachment #8551548 -
Attachment is obsolete: true
| Assignee | ||
Comment 11•11 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=49070b2cbebb
looks good so far
Updated•11 years ago
|
Priority: -- → P2
| Reporter | ||
Comment 12•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/bddb69ed8cae
https://hg.mozilla.org/integration/mozilla-inbound/rev/077140ba65d0
Flags: in-testsuite?
Comment 13•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/bddb69ed8cae
https://hg.mozilla.org/mozilla-central/rev/077140ba65d0
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Comment 14•11 years ago
|
||
Comment on attachment 8551502 [details] [diff] [review]
Queue "durationchange" instead of dispatching synchronously
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]: Change is straightforward but affects all media playback. This improves our spec compliance, but is a minor behaviour change from before.
[String/UUID change made/needed]: None.
Attachment #8551502 -
Flags: approval-mozilla-beta?
Attachment #8551502 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Comment 15•11 years ago
|
||
Approval request is for both patches. We need the test update as well.
Updated•11 years ago
|
Attachment #8551609 -
Flags: approval-mozilla-beta+
Attachment #8551609 -
Flags: approval-mozilla-aurora+
Updated•11 years ago
|
Attachment #8551502 -
Flags: approval-mozilla-beta?
Attachment #8551502 -
Flags: approval-mozilla-beta+
Attachment #8551502 -
Flags: approval-mozilla-aurora?
Attachment #8551502 -
Flags: approval-mozilla-aurora+
Comment 16•11 years ago
|
||
Comment 17•11 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•