Closed
Bug 886173
Opened 11 years ago
Closed 11 years ago
Preserve playbackRate across pause/play
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: coyotebush, Assigned: padenot)
References
Details
Attachments
(2 files, 1 obsolete file)
2.25 KB,
patch
|
cpearce
:
review+
|
Details | Diff | Splinter Review |
4.72 KB,
patch
|
Details | Diff | Splinter Review |
Steps to reproduce: 1. Open http://www.w3.org/2010/05/video/mediaevents.html test page in Nightly. 2. Press "play()", then "playbackRate++". 3. Observe that playbackRate = 2 is listed. 4. Press "pause()", then "play()". Expected result (works in Safari 6.0.5, WebKit nightly, Chrome Canary): Video continues playing at double speed. Actual result: playbackRate resets to 1 on "play()", and the video plays at normal speed. As a use case, consider Coursera.org video lectures with integrated quizzes. When the lecture resumes after a quiz, it should still be at the rate the user specified.
Assignee | ||
Comment 1•11 years ago
|
||
Quoting the spec [1]: > The "play" function in the user agent's interface must set the playbackRate > attribute to the value of the defaultPlaybackRate attribute before invoking the > play() method. hence the change in videocontrols.xml. [1]: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#user-interface
Attachment #766633 -
Flags: review?(cpearce)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → paul
Comment 2•11 years ago
|
||
Comment on attachment 766633 [details] [diff] [review] Preserve playbackRate across pause/play. r= Review of attachment 766633 [details] [diff] [review]: ----------------------------------------------------------------- Sorry for slow review. I've been traveling.
Attachment #766633 -
Flags: review?(cpearce) → review+
Assignee | ||
Comment 3•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ee7d34a58f11
Comment 4•11 years ago
|
||
Backed out for mochitest 1 failures in test_playback_rate.html : https://tbpl.mozilla.org/php/getParsedLog.php?id=25171124&tree=Mozilla-Inbound https://hg.mozilla.org/integration/mozilla-inbound/rev/cc6fe94c0919
Reporter | ||
Comment 5•11 years ago
|
||
(In reply to Paul Adenot (:padenot) from comment #1) > Quoting the spec [1]: > > > The "play" function in the user agent's interface must set the playbackRate > > attribute to the value of the defaultPlaybackRate attribute before invoking the > > play() method. > > hence the change in videocontrols.xml. While you're still looking at it, I'm curious about this part. This means it will reset to 1.0 when I use the play button on the default controller, right? Not sure why that would be wanted, and FWIW, the WebKit/Chrome players don't do that. But as long as it's in the spec, okay.
Assignee | ||
Comment 6•11 years ago
|
||
Well, 'playbackRate' is meant to implement fast forward-type feature: play a greater speed to reach some location in the media, or at low speed to precisely find some location. When you think about it that way, the behavior here is quite logical: on an old VCR, pressing "Play" would stop the fast-forward. What you want here is to play with 'defaultPlaybackRate'.
Assignee | ||
Comment 7•11 years ago
|
||
So, I forgot to update the test. The spec now says: > The defaultPlaybackRate is used by the user agent when it exposes a user > interface to the user. Indeed, in only says to "reset" the playbackRate to defaultPlaybackRate, when using the UA controls, and on load(). I removed the defaultPlaybacKRate section, and added some more specific tests for that. Pushed to try at: http://tbpl.mozilla.org/?tree=Try&rev=a896a4bf2cd6
Attachment #774015 -
Flags: review?(cpearce)
Updated•11 years ago
|
Attachment #774015 -
Flags: review?(cpearce) → review+
Comment 8•11 years ago
|
||
I have rebased the patch against yesterday's tip.
Attachment #766633 -
Attachment is obsolete: true
Assignee | ||
Comment 9•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/bb14995b3241
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/bb14995b3241
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in
before you can comment on or make changes to this bug.
Description
•