Bug 93745 - no timeupdate events emitted for media controller
Summary: no timeupdate events emitted for media controller
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jer Noble
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-08-10 14:45 PDT by Jer Noble
Modified: 2012-08-10 16:50 PDT (History)
3 users (show)

See Also:


Attachments
Patch (6.89 KB, patch)
2012-08-10 16:04 PDT, Jer Noble
eric.carlson: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2012-08-10 14:45:48 PDT
no timeupdate events emitted for media controller
Comment 1 Jer Noble 2012-08-10 14:47:10 PDT
<rdar://problem/11753267>
Comment 2 Jer Noble 2012-08-10 14:49:39 PDT
<rdar://problem/11753267>
Comment 3 Jer Noble 2012-08-10 16:04:12 PDT
Created attachment 157828 [details]
Patch
Comment 4 Eric Carlson 2012-08-10 16:11:03 PDT
Comment on attachment 157828 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=157828&action=review

> Source/WebCore/ChangeLog:13
> +        Enforce the spec requirement that the timeupdate event is fired no more often
> +        than every 250ms.

Doesn't it say to fire them *at least* every 250ms?

> Source/WebCore/ChangeLog:17
> +        Add a periodic firing timer to generat timeupdate events during playback.

Nit: "generat" -> "generate"

> Source/WebCore/ChangeLog:25
> +        (MediaController::updatePlaybackState): Start and ntop the timeupdate timer.

Nit: "ntop" -> "stop"
Comment 5 Jer Noble 2012-08-10 16:28:33 PDT
(In reply to comment #4)
> (From update of attachment 157828 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=157828&action=review
> 
> > Source/WebCore/ChangeLog:13
> > +        Enforce the spec requirement that the timeupdate event is fired no more often
> > +        than every 250ms.
> 
> Doesn't it say to fire them *at least* every 250ms?

Well, sort of.  It actually says: 

"Every 15 to 250ms, or whenever the MediaController's media controller position changes, whichever happens least often, the user agent must queue a task to fire a simple event named timeupdate at the MediaController."

So, no more often than "15 to 250ms", but no less often than "15 to 250ms".

> > Source/WebCore/ChangeLog:17
> > +        Add a periodic firing timer to generat timeupdate events during playback.
> 
> Nit: "generat" -> "generate"

Fixed.

> > Source/WebCore/ChangeLog:25
> > +        (MediaController::updatePlaybackState): Start and ntop the timeupdate timer.
> 
> Nit: "ntop" -> "stop"

Fixed.
Comment 6 Jer Noble 2012-08-10 16:50:58 PDT
Committed r125337: <http://trac.webkit.org/changeset/125337>