RESOLVED FIXED 33015
[GTK] Failing media/video-seek-past-end-playing.html
https://bugs.webkit.org/show_bug.cgi?id=33015
Summary [GTK] Failing media/video-seek-past-end-playing.html
Gustavo Noronha (kov)
Reported 2009-12-29 05:03:44 PST
This test runs on and off locally, but seems to always fail in the release bot.
Attachments
listen on timeupdate event instead of waiting a fixed amount of time, which is prone to test flackyness (4.92 KB, patch)
2010-01-12 05:32 PST, Philippe Normand
eric.carlson: review+
Removed the last timer of this test (2.51 KB, patch)
2010-01-13 00:15 PST, Philippe Normand
no flags
Removed the last timer of this test (3.01 KB, patch)
2010-01-14 03:56 PST, Philippe Normand
xan.lopez: review+
Gustavo Noronha (kov)
Comment 1 2009-12-29 05:05:51 PST
Skipped in r52616.
Philippe Normand
Comment 2 2010-01-11 03:28:39 PST
The seek back to beginning is done and the pipeline is in PLAYING but haven't had time to play any data :/
Philippe Normand
Comment 3 2010-01-12 03:19:41 PST
That test is really flacky in our case because it expects that currentTime has been updated 200ms after play() was called. But the pipeline can take more than 200ms to preroll and start playing for real... So I suggest to remove that 200ms timeout from the test and listen on timeupdate instead. The second time it is fired we are sure that playback really started and that currentTime is > 0. What do you think? I can see the exact same issue in media/audio-mpeg-supported.html. Moreover I found out that our player performs un-needed seeks: - seek(0): un-needed when currentTime is 0 already - setRate(1): un-needed at beginning of playback as it is already the default in playbin.
Gustavo Noronha (kov)
Comment 4 2010-01-12 03:59:40 PST
(In reply to comment #3) > That test is really flacky in our case because it expects that currentTime has > been updated 200ms after play() was called. But the pipeline can take more than > 200ms to preroll and start playing for real... > > So I suggest to remove that 200ms timeout from the test and listen on > timeupdate instead. The second time it is fired we are sure that playback > really started and that currentTime is > 0. What do you think? Sounds like a plan to me. =) > I can see the exact same issue in media/audio-mpeg-supported.html. Aha, well, I'm all for removing timeouts, and making the tests state-based. > Moreover I found out that our player performs un-needed seeks: > > - seek(0): un-needed when currentTime is 0 already > - setRate(1): un-needed at beginning of playback as it is already the default > in playbin. Make patches =D.
Philippe Normand
Comment 5 2010-01-12 05:32:39 PST
Created attachment 46364 [details] listen on timeupdate event instead of waiting a fixed amount of time, which is prone to test flackyness
Eric Carlson
Comment 6 2010-01-12 08:45:20 PST
Comment on attachment 46364 [details] listen on timeupdate event instead of waiting a fixed amount of time, which is prone to test flackyness In both tests set timeupdateEventCount to 0 before ending the test. This isn't necessary and should be removed. A comment about why the test ends after two timpupdate events would be nice. r=me with these minor changes. Extra points if you cleanup video-seek-past-end-playing.html to make it a reasonable html file instead of the ugly fragment it is now :-)
Philippe Normand
Comment 7 2010-01-12 10:34:52 PST
Added the comments, made the test an html document and landed as r53147. Thanks!
Philippe Normand
Comment 8 2010-01-12 11:35:30 PST
The last timer of the test needs to be killed, the test still fails on the release bot.
Philippe Normand
Comment 9 2010-01-13 00:15:04 PST
Created attachment 46430 [details] Removed the last timer of this test
Philippe Normand
Comment 10 2010-01-14 03:51:52 PST
Comment on attachment 46364 [details] listen on timeupdate event instead of waiting a fixed amount of time, which is prone to test flackyness This one was landed.
Philippe Normand
Comment 11 2010-01-14 03:56:49 PST
Created attachment 46554 [details] Removed the last timer of this test
Xan Lopez
Comment 12 2010-01-14 03:58:56 PST
Comment on attachment 46554 [details] Removed the last timer of this test LGTM.
Philippe Normand
Comment 13 2010-01-14 04:12:22 PST
Landed as r53258, Thanks!
Note You need to log in before you can comment on or make changes to this bug.