Bug 123791 (seekrate) - [GStreamer] Playback rate is omitted when seeking
Summary: [GStreamer] Playback rate is omitted when seeking
Status: RESOLVED FIXED
Alias: seekrate
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 01:18 PST by Piotr Grad
Modified: 2013-11-06 10:22 PST (History)
8 users (show)

See Also:


Attachments
Patch and Layout test (3.59 KB, patch)
2013-11-05 01:19 PST, Piotr Grad
no flags Details | Formatted Diff | Diff
Patch & layout test (3.59 KB, patch)
2013-11-05 01:23 PST, Piotr Grad
pnormand: review-
Details | Formatted Diff | Diff
Patch & layout test (4.10 KB, patch)
2013-11-05 03:52 PST, Piotr Grad
pnormand: review+
pnormand: commit-queue-
Details | Formatted Diff | Diff
Patch & layout test (4.09 KB, patch)
2013-11-05 06:55 PST, Piotr Grad
no flags Details | Formatted Diff | Diff
Patch & layout test (4.50 KB, patch)
2013-11-06 00:19 PST, Piotr Grad
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Grad 2013-11-05 01:18:30 PST
After setting playback rate to negative value: when seeking we should calculate start & end time. When playback rate is negative start time should be time passed to 'seek' method, and end time should be '0'.
Comment 1 Piotr Grad 2013-11-05 01:19:36 PST
Created attachment 216012 [details]
Patch and Layout test
Comment 2 Piotr Grad 2013-11-05 01:22:30 PST
Comment on attachment 216012 [details]
Patch and Layout test

inproper url to bugizlla entry
Comment 3 Piotr Grad 2013-11-05 01:23:10 PST
Created attachment 216013 [details]
Patch & layout test
Comment 4 Philippe Normand 2013-11-05 01:30:20 PST
Comment on attachment 216013 [details]
Patch & layout test

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

Thanks for the patch, it's a regression I think... this used to work at some point :) r- only because of the test issue and missing results

> LayoutTests/media/video-seek-with-negative-playback.html:1
> +<video src = 'content/test.ogv'></video>

Please use findMediaFile()
Comment 5 Piotr Grad 2013-11-05 03:52:11 PST
Created attachment 216019 [details]
Patch & layout test
Comment 6 Philippe Normand 2013-11-05 05:42:28 PST
Comment on attachment 216019 [details]
Patch & layout test

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

Looks good but I have some nits about the test. Can you please fix them?

> LayoutTests/media/video-seek-with-negative-playback.html:1
> +<video></video>

<video/>
It'd be good to make this a normal html file with the usual head and body too.

> LayoutTests/media/video-seek-with-negative-playback.html:8
> +        function ()

The coding style is not very consistent about curly braces. Can the test be refactored to avoid the nested waitForEvent()s?

> LayoutTests/media/video-seek-with-negative-playback.html:16
> +                    if ( lastTime == -1) {

empty space
Comment 7 Piotr Grad 2013-11-05 06:55:52 PST
Created attachment 216035 [details]
Patch & layout test
Comment 8 Piotr Grad 2013-11-05 07:01:06 PST
(In reply to comment #6)
> (From update of attachment 216019 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=216019&action=review
> 
> Looks good but I have some nits about the test. Can you please fix them?
> 
> > LayoutTests/media/video-seek-with-negative-playback.html:1
> > +<video></video>
> 
> <video/>
> It'd be good to make this a normal html file with the usual head and body too.

The problem is that when i use html, head, and body tags test would look much more complicated becouse of needed getElementById calls, etc.

> 
> > LayoutTests/media/video-seek-with-negative-playback.html:8
> > +        function ()
> 
> The coding style is not very consistent about curly braces. Can the test be refactored to avoid the nested waitForEvent()s?

The problem is that we have to wait for seeked event to listen for timeupdate event. Also we can't seek if player is not ready to play.

> 
> > LayoutTests/media/video-seek-with-negative-playback.html:16
> > +                    if ( lastTime == -1) {
> 
> empty space
Comment 9 Philippe Normand 2013-11-05 07:31:56 PST
(In reply to comment #8)
> (In reply to comment #6)
> > (From update of attachment 216019 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=216019&action=review
> > 
> > Looks good but I have some nits about the test. Can you please fix them?
> > 
> > > LayoutTests/media/video-seek-with-negative-playback.html:1
> > > +<video></video>
> > 
> > <video/>
> > It'd be good to make this a normal html file with the usual head and body too.
> 
> The problem is that when i use html, head, and body tags test would look much more complicated becouse of needed getElementById calls, etc.
> 

Come on, it's not that complicated. There's also a findMediaElement() function...

> > 
> > > LayoutTests/media/video-seek-with-negative-playback.html:8
> > > +        function ()
> > 
> > The coding style is not very consistent about curly braces. Can the test be refactored to avoid the nested waitForEvent()s?
> 
> The problem is that we have to wait for seeked event to listen for timeupdate event. Also we can't seek if player is not ready to play.
> 

Fine.
Comment 10 Piotr Grad 2013-11-06 00:19:19 PST
Created attachment 216145 [details]
Patch & layout test
Comment 11 WebKit Commit Bot 2013-11-06 01:30:32 PST
Comment on attachment 216145 [details]
Patch & layout test

Clearing flags on attachment: 216145

Committed r158734: <http://trac.webkit.org/changeset/158734>
Comment 12 WebKit Commit Bot 2013-11-06 01:30:35 PST
All reviewed patches have been landed.  Closing bug.
Comment 13 Jer Noble 2013-11-06 09:32:57 PST
(In reply to comment #12)
> All reviewed patches have been landed.  Closing bug.

This new test immediately failed on all Apple bots. Additionally, the test was committed with CRLF line-endings. Cleaned up the test and results in https://trac.webkit.org/r158752.
Comment 14 Philippe Normand 2013-11-06 10:22:55 PST
(In reply to comment #13)
> (In reply to comment #12)
> > All reviewed patches have been landed.  Closing bug.
> 
> This new test immediately failed on all Apple bots. Additionally, the test was committed with CRLF line-endings. Cleaned up the test and results in https://trac.webkit.org/r158752.

Oh, I thought the mac EWS was running layout tests nowadays?
Sorry about the trouble.