RESOLVED FIXED 56473
Add play state callbacks to MediaControls, kill timeUpdate timer.
https://bugs.webkit.org/show_bug.cgi?id=56473
Summary Add play state callbacks to MediaControls, kill timeUpdate timer.
Dimitri Glazkov (Google)
Reported 2011-03-16 11:16:25 PDT
Add play state callbacks to MediaControls, kill timeUpdate timer.
Attachments
Patch (6.19 KB, patch)
2011-03-16 11:18 PDT, Dimitri Glazkov (Google)
eric.carlson: review+
Dimitri Glazkov (Google)
Comment 1 2011-03-16 11:18:51 PDT
Eric Carlson
Comment 2 2011-03-16 11:22:35 PDT
Comment on attachment 85944 [details] Patch Nice!
Dimitri Glazkov (Google)
Comment 3 2011-03-16 11:56:06 PDT
(In reply to comment #2) > (From update of attachment 85944 [details]) > Nice! Since this change does an extra update of the timeline/status as soon as we start playing, the status values are more accurate. However, this affects results in media/controls-without-preload.html, because canplaythrough event is fired asynchronously. By the time it's fired, we already started playing and the status is slightly different. Should I: a) change expectations for the test b) remove updating on start?
Dimitri Glazkov (Google)
Comment 4 2011-03-16 14:52:21 PDT
(In reply to comment #3) > (In reply to comment #2) > > (From update of attachment 85944 [details] [details]) > > Nice! > > Since this change does an extra update of the timeline/status as soon as we start playing, the status values are more accurate. However, this affects results in media/controls-without-preload.html, because canplaythrough event is fired asynchronously. By the time it's fired, we already started playing and the status is slightly different. > > Should I: > a) change expectations for the test > b) remove updating on start? I ended up improving the test in http://trac.webkit.org/changeset/81280.
Dimitri Glazkov (Google)
Comment 5 2011-03-16 15:16:01 PDT
Note You need to log in before you can comment on or make changes to this bug.