WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
95986
Seek to end after duration change in HTMLMediaElement
https://bugs.webkit.org/show_bug.cgi?id=95986
Summary
Seek to end after duration change in HTMLMediaElement
Victoria Kirst
Reported
2012-09-06 08:24:26 PDT
Seek to end after duration change in HTMLMediaElement
Attachments
Patch
(6.76 KB, patch)
2012-09-06 08:30 PDT
,
Victoria Kirst
no flags
Details
Formatted Diff
Diff
Patch
(6.66 KB, patch)
2012-09-07 02:10 PDT
,
Victoria Kirst
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Victoria Kirst
Comment 1
2012-09-06 08:30:08 PDT
Created
attachment 162513
[details]
Patch
Eric Carlson
Comment 2
2012-09-06 11:01:45 PDT
Comment on
attachment 162513
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=162513&action=review
> LayoutTests/http/tests/media/media-source/seek-to-end-after-duration-change.html:13 > + waitForEventOnce('loadeddata', onLoadedData, false, false, video);
waitForEventOnce only takes three parameters, what are the last two intended to do?
> LayoutTests/http/tests/media/media-source/seek-to-end-after-duration-change.html:20 > + waitForEventOnce('seeked', onExplicitSeek, false, false, video);
Ditto.
> LayoutTests/http/tests/media/media-source/seek-to-end-after-duration-change.html:32 > + waitForEventOnce('durationchange', onDurationChange, false, false, video);
Ditto.
> LayoutTests/http/tests/media/media-source/seek-to-end-after-duration-change.html:42 > + waitForEventOnce('seeking', function() { > + waitForEventOnce('seeked', onSeekToEnd, false, false, video); > + mediaSource.endOfStream(); > + }, false, false, video);
Ditto.
> LayoutTests/http/tests/media/media-source/seek-to-end-after-duration-change.html:50 > + failTest("Seeked to " + currentTime.toFixed(3) + " instead of " + duration.toFixed(3));
You compare currenTime and duration with full precision so the error message should do the same.
Victoria Kirst
Comment 3
2012-09-07 02:10:39 PDT
Created
attachment 162713
[details]
Patch
Victoria Kirst
Comment 4
2012-09-07 02:12:27 PDT
Comment on
attachment 162513
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=162513&action=review
>> LayoutTests/http/tests/media/media-source/seek-to-end-after-duration-change.html:13 >> + waitForEventOnce('loadeddata', onLoadedData, false, false, video); > > waitForEventOnce only takes three parameters, what are the last two intended to do?
Whoops; originally I had used waitForEvent() (which has 5 parameters -- the 4th is for "run one time", and the 5th is the element on which the event listener is attached), then realized I wanted waitForEventOnce() and didn't remove the last two parameters. Since I always attach the event listener to "video," the waitForEventOnce() 3-parameter method works. Changed all callsites.
>> LayoutTests/http/tests/media/media-source/seek-to-end-after-duration-change.html:20 >> + waitForEventOnce('seeked', onExplicitSeek, false, false, video); > > Ditto.
Fixed.
>> LayoutTests/http/tests/media/media-source/seek-to-end-after-duration-change.html:32 >> + waitForEventOnce('durationchange', onDurationChange, false, false, video); > > Ditto.
Fixed.
>> LayoutTests/http/tests/media/media-source/seek-to-end-after-duration-change.html:42 >> + }, false, false, video); > > Ditto.
Fixed, here and a few lines above.
>> LayoutTests/http/tests/media/media-source/seek-to-end-after-duration-change.html:50 >> + failTest("Seeked to " + currentTime.toFixed(3) + " instead of " + duration.toFixed(3)); > > You compare currenTime and duration with full precision so the error message should do the same.
Done.
WebKit Review Bot
Comment 5
2012-09-07 18:28:22 PDT
Comment on
attachment 162713
[details]
Patch Clearing flags on attachment: 162713 Committed
r127949
: <
http://trac.webkit.org/changeset/127949
>
WebKit Review Bot
Comment 6
2012-09-07 18:28:24 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug