Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(624)

Issue 685993002: Ignore seek operations to the current time in pause state (Closed)

Created:
6 years, 1 month ago by Srirama
Modified:
6 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Ignore seek operations to the current time during pause state. This change is required to remove the noseekrequired logic in HTMLMediaElement.cpp BUG=266631 Committed: https://crrev.com/f881f652f007ea0480eb0a0fa72a8e5efa00c9ae Cr-Commit-Position: refs/heads/master@{#304019}

Patch Set 1 #

Patch Set 2 : Fixed issue with seeking and seeked events #

Total comments: 7

Patch Set 3 : Fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -2 lines) Patch
M media/blink/webmediaplayer_impl.cc View 1 2 1 chunk +14 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (4 generated)
Srirama
As discussed i have uploaded the changes here for discussion. These are not final changes ...
6 years, 1 month ago (2014-10-29 04:58:24 UTC) #2
philipj_slow
What did you want to discuss about this CL? It seems like the correct fix ...
6 years, 1 month ago (2014-10-29 08:23:44 UTC) #3
Srirama
On 2014/10/29 08:23:44, philipj wrote: > What did you want to discuss about this CL? ...
6 years, 1 month ago (2014-10-29 08:55:59 UTC) #4
philipj_slow
On 2014/10/29 08:55:59, Srirama wrote: > On 2014/10/29 08:23:44, philipj wrote: > > What did ...
6 years, 1 month ago (2014-10-29 10:39:35 UTC) #5
Srirama
I have changed to post an internal task for OnPipelineBufferingStateChanged which will trigger seeking and ...
6 years, 1 month ago (2014-10-29 11:39:14 UTC) #6
Srirama
Also i have verified the mediasource-duration test with 1000 iterations, with these changes, htmlmediaelement changes ...
6 years, 1 month ago (2014-10-29 11:41:19 UTC) #7
philipj_slow
Faking a readyState change when there may not have been one seems a bit risky, ...
6 years, 1 month ago (2014-10-29 13:13:41 UTC) #8
Srirama
On 2014/10/29 13:13:41, philipj wrote: > Faking a readyState change when there may not have ...
6 years, 1 month ago (2014-10-29 14:33:41 UTC) #9
DaleCurtis
Another option might be to just call client->onTimeChanged() instead of manipulating the readyState, but I ...
6 years, 1 month ago (2014-10-29 18:31:46 UTC) #10
philipj_slow
https://codereview.chromium.org/685993002/diff/20001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/685993002/diff/20001/media/blink/webmediaplayer_impl.cc#newcode350 media/blink/webmediaplayer_impl.cc:350: BUFFERING_HAVE_ENOUGH)); On 2014/10/29 18:31:46, DaleCurtis wrote: > What about ...
6 years, 1 month ago (2014-10-29 19:14:48 UTC) #11
Srirama
I think client_->timeChanged() will not solve the purpose. yesterday i have tried with OnPipelineSeeked(internally invokes ...
6 years, 1 month ago (2014-10-30 03:25:48 UTC) #12
Srirama
SetReadyState with current state is not solving the issue. Timeout issue is coming. Please find ...
6 years, 1 month ago (2014-10-30 11:16:42 UTC) #14
DaleCurtis
When you tested, were you PostTask'ing the setReadyState() or timeChanged() calls?
6 years, 1 month ago (2014-10-30 18:21:55 UTC) #15
Srirama
On 2014/10/30 18:21:55, DaleCurtis wrote: > When you tested, were you PostTask'ing the setReadyState() or ...
6 years, 1 month ago (2014-10-31 03:13:10 UTC) #16
Srirama
On 2014/10/31 03:13:10, Srirama wrote: > On 2014/10/30 18:21:55, DaleCurtis wrote: > > When you ...
6 years, 1 month ago (2014-10-31 03:18:37 UTC) #17
DaleCurtis
I see; this lgtm then. Please add some tests which verify the event order with ...
6 years, 1 month ago (2014-10-31 21:53:02 UTC) #18
Srirama
On 2014/10/31 21:53:02, DaleCurtis wrote: > I see; this lgtm then. Please add some tests ...
6 years, 1 month ago (2014-11-01 03:46:28 UTC) #19
Srirama
On 2014/11/01 03:46:28, Srirama wrote: > On 2014/10/31 21:53:02, DaleCurtis wrote: > > I see; ...
6 years, 1 month ago (2014-11-10 09:11:34 UTC) #20
philipj_slow
Non-owner LGTM.
6 years, 1 month ago (2014-11-13 11:54:17 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/685993002/60001
6 years, 1 month ago (2014-11-13 11:55:34 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:60001)
6 years, 1 month ago (2014-11-13 12:40:19 UTC) #24
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f881f652f007ea0480eb0a0fa72a8e5efa00c9ae Cr-Commit-Position: refs/heads/master@{#304019}
6 years, 1 month ago (2014-11-13 12:40:59 UTC) #25
philipj_slow
On 2014/11/01 03:46:28, Srirama wrote: > On 2014/10/31 21:53:02, DaleCurtis wrote: > > I see; ...
6 years, 1 month ago (2014-11-13 14:47:54 UTC) #26
Srirama
This has been reverted in https://codereview.chromium.org/726523003/ because the test MediaTest.VideoBear3gpAacH264/0 was failing (timing out). Luckily ...
6 years, 1 month ago (2014-11-19 17:11:05 UTC) #28
Srirama
6 years, 1 month ago (2014-11-19 17:14:30 UTC) #29
Message was sent while issue was closed.
On 2014/11/19 17:11:05, Srirama wrote:
> This has been reverted in https://codereview.chromium.org/726523003/ because
the
> test MediaTest.VideoBear3gpAacH264/0 was failing (timing out).
> Luckily i was able to simulate the issue with linux_chromium_chrome_rel bot,
not
> sure how it was missed when the patch was actually landed.
> So i did a bit of investigation with the help of logs with the
> linux_chromium_chrome_rel bot. I found out that the issue is actually with the
> pipeline_.GetMediaTime() in pause() function in webmediaplayer_impl.
> In the test case
>
https://code.google.com/p/chromium/codesearch#chromium/src/media/test/data/pl...
> there is a function SeekTestStep() which is invoked on 'ended' event. In this
> function there is a seek to 0.9*duration value. So ideally it should not be
the
> "seek to sametime" scenario but it is happening that way because of wrong
value
> from pipeline_.GetMediaTime() which is not returning a value less than the

Typo**** from pipeline_.GetMediaTime() which is returning a value less than the

> duration even though playback has been completed.
> So i did a small change to verify in
> https://codereview.chromium.org/740663002/#ps140001 and it is passing the test
> case now.
> I used pipeline_.GetMediaDuration() instead of pipeline_.GetMediaTime() when
the
> playback has ended.
> 
> Please suggest me whether i can proceed with this change or not.

Powered by Google App Engine
This is Rietveld 408576698