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

Issue 740663002: Relanding 'Ignore seek operations to the current time in pause state' patch (Closed)

Created:
6 years, 1 month ago by Srirama
Modified:
5 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/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/36ab2684f2422d6cb49c2462333816fb9857cfe6 Cr-Commit-Position: refs/heads/master@{#307857}

Patch Set 1 : Fixed issue with paused time #

Total comments: 6

Patch Set 2 : Fixed review comments #

Patch Set 3 : Fix duration against current_time on ended callback #

Patch Set 4 : Fixed crashes with test cases #

Patch Set 5 : Removed duration change callback #

Total comments: 3

Patch Set 6 : Test for bot results #

Patch Set 7 : Pretend currenttime as duration if it's a few ms less #

Total comments: 4

Patch Set 8 : Fixed issue with durationevent call in pipeline_unittest #

Patch Set 9 : Simplified GetMediaTime() as per review #

Total comments: 11

Patch Set 10 : Fixed review comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -2 lines) Patch
M media/base/pipeline.cc View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -0 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 3 comments Download
M media/blink/webmediaplayer_impl.cc View 1 1 chunk +14 lines, -2 lines 0 comments Download

Messages

Total messages: 71 (16 generated)
Srirama
This previous patch has been reverted in https://codereview.chromium.org/726523003/ because the test MediaTest.VideoBear3gpAacH264/0 was failing (timing ...
6 years, 1 month ago (2014-11-20 14:42:28 UTC) #11
philipj_slow
https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc#newcode306 media/blink/webmediaplayer_impl.cc:306: // FIXME: In some cases GetMediaTime() returns a value ...
6 years, 1 month ago (2014-11-20 15:27:21 UTC) #12
DaleCurtis
https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc#newcode306 media/blink/webmediaplayer_impl.cc:306: // FIXME: In some cases GetMediaTime() returns a value ...
6 years, 1 month ago (2014-11-20 19:02:27 UTC) #13
philipj_slow
https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc#newcode306 media/blink/webmediaplayer_impl.cc:306: // FIXME: In some cases GetMediaTime() returns a value ...
6 years, 1 month ago (2014-11-20 19:10:43 UTC) #14
DaleCurtis
https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc#newcode306 media/blink/webmediaplayer_impl.cc:306: // FIXME: In some cases GetMediaTime() returns a value ...
6 years, 1 month ago (2014-11-20 19:14:39 UTC) #15
philipj_slow
https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc#newcode306 media/blink/webmediaplayer_impl.cc:306: // FIXME: In some cases GetMediaTime() returns a value ...
6 years, 1 month ago (2014-11-21 00:26:38 UTC) #16
Srirama
https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/740663002/diff/180001/media/blink/webmediaplayer_impl.cc#newcode306 media/blink/webmediaplayer_impl.cc:306: // FIXME: In some cases GetMediaTime() returns a value ...
6 years, 1 month ago (2014-11-21 04:05:44 UTC) #17
philipj_slow
Isn't the root cause of all of this that the initially reported duration may not ...
6 years, 1 month ago (2014-11-21 08:24:22 UTC) #19
Srirama
On 2014/11/21 08:24:22, philipj wrote: > Isn't the root cause of all of this that ...
6 years, 1 month ago (2014-11-21 12:42:23 UTC) #20
DaleCurtis
Hmm, I could see updating the duration during the ended event as well as when ...
6 years, 1 month ago (2014-11-21 18:36:47 UTC) #21
philipj_slow
Assuming there is no limit to how wrong the initially known duration can be, I ...
6 years ago (2014-11-24 10:23:08 UTC) #22
DaleCurtis
That sgtm.
6 years ago (2014-11-25 01:52:58 UTC) #23
Srirama
Updated as discussed. There is a failure in android_dbg_tests_recipe in patchset-3, as there is a ...
6 years ago (2014-11-25 07:09:57 UTC) #24
philipj_slow
https://codereview.chromium.org/740663002/diff/280001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/740663002/diff/280001/media/base/pipeline.cc#newcode640 media/base/pipeline.cc:640: duration_ = media_time; Shouldn't this be SetDuration(media_time), or what ...
6 years ago (2014-11-25 10:01:05 UTC) #25
Srirama
https://codereview.chromium.org/740663002/diff/280001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/740663002/diff/280001/media/base/pipeline.cc#newcode640 media/base/pipeline.cc:640: duration_ = media_time; On 2014/11/25 10:01:04, philipj wrote: > ...
6 years ago (2014-11-25 10:19:29 UTC) #26
philipj_slow
https://codereview.chromium.org/740663002/diff/280001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/740663002/diff/280001/media/base/pipeline.cc#newcode640 media/base/pipeline.cc:640: duration_ = media_time; On 2014/11/25 10:19:29, Srirama wrote: > ...
6 years ago (2014-11-25 12:24:29 UTC) #27
Srirama
On 2014/11/25 12:24:29, philipj wrote: > https://codereview.chromium.org/740663002/diff/280001/media/base/pipeline.cc > File media/base/pipeline.cc (right): > > https://codereview.chromium.org/740663002/diff/280001/media/base/pipeline.cc#newcode640 > ...
6 years ago (2014-11-25 12:41:43 UTC) #28
philipj_slow
Yes, two durationchange events will be fine, as long as one is just before the ...
6 years ago (2014-11-25 13:10:43 UTC) #29
Srirama
On 2014/11/25 13:10:43, philipj wrote: > Yes, two durationchange events will be fine, as long ...
6 years ago (2014-11-25 14:08:07 UTC) #30
philipj_slow
If you prepare the Blink-side test and verifying that it fails without this CL and ...
6 years ago (2014-11-25 16:05:21 UTC) #31
Srirama
On 2014/11/25 16:05:21, philipj wrote: > If you prepare the Blink-side test and verifying that ...
6 years ago (2014-11-26 03:25:47 UTC) #32
Srirama
As i understand i need to create a media file with wrong meta data which ...
6 years ago (2014-11-27 07:49:19 UTC) #33
philipj_slow
How can currentTime be wrong, though? Is it reporting some other value after seeking than ...
6 years ago (2014-11-27 12:40:57 UTC) #34
Srirama
On 2014/11/27 12:40:57, philipj wrote: > How can currentTime be wrong, though? Is it reporting ...
6 years ago (2014-11-27 13:34:40 UTC) #35
philipj_slow
Yeah, that sounds problematic indeed. For which input files does this happen?
6 years ago (2014-11-27 13:40:55 UTC) #36
Srirama
On 2014/11/27 13:40:55, philipj wrote: > Yeah, that sounds problematic indeed. For which input files ...
6 years ago (2014-11-27 14:27:38 UTC) #37
philipj_slow
That's odd, WebM isn't a format I would suspect of being susceptible to this kind ...
6 years ago (2014-11-27 15:13:52 UTC) #38
Srirama
On 2014/11/27 15:13:52, philipj wrote: > That's odd, WebM isn't a format I would suspect ...
6 years ago (2014-11-28 04:59:49 UTC) #39
philipj_slow
For WAVE PCM it seems even more mysterious, since you can't really go wrong when ...
6 years ago (2014-11-28 09:17:02 UTC) #40
Srirama
On 2014/11/28 09:17:02, philipj wrote: > For WAVE PCM it seems even more mysterious, since ...
6 years ago (2014-11-28 11:06:00 UTC) #41
Srirama
On 2014/11/28 11:06:00, Srirama wrote: > On 2014/11/28 09:17:02, philipj wrote: > > For WAVE ...
6 years ago (2014-11-28 11:06:27 UTC) #42
philipj_slow
That sounds like a bug, but not very serious. If there's a workaround that would ...
6 years ago (2014-11-28 12:19:27 UTC) #43
Srirama
On 2014/11/28 12:19:27, philipj wrote: > That sounds like a bug, but not very serious. ...
6 years ago (2014-11-28 13:57:00 UTC) #44
DaleCurtis
The reported current time is based on played out audio frames, so it may be ...
6 years ago (2014-12-01 19:32:02 UTC) #46
DaleCurtis
https://codereview.chromium.org/740663002/diff/340001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/740663002/diff/340001/media/base/pipeline.cc#newcode165 media/base/pipeline.cc:165: // FIXME: In some cases GetMediaTime() returns a value ...
6 years ago (2014-12-01 19:33:49 UTC) #47
Srirama
On 2014/12/01 19:32:02, DaleCurtis wrote: > The reported current time is based on played out ...
6 years ago (2014-12-02 10:28:24 UTC) #49
Srirama
Please take a look at the final patch set (patch set 9 after several tests ...
6 years ago (2014-12-02 11:16:29 UTC) #50
DaleCurtis
https://codereview.chromium.org/740663002/diff/400001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/740663002/diff/400001/media/base/pipeline.cc#newcode35 media/base/pipeline.cc:35: const int kCurrTimeErrorInMillisecondsOnPlaybackEnd = 250; On 2014/12/02 11:16:29, Srirama ...
6 years ago (2014-12-02 18:14:05 UTC) #51
Srirama
https://codereview.chromium.org/740663002/diff/400001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/740663002/diff/400001/media/base/pipeline.cc#newcode35 media/base/pipeline.cc:35: const int kCurrTimeErrorInMillisecondsOnPlaybackEnd = 250; On 2014/12/02 18:14:05, DaleCurtis ...
6 years ago (2014-12-03 14:43:02 UTC) #53
DaleCurtis
https://codereview.chromium.org/740663002/diff/400001/media/base/pipeline_unittest.cc File media/base/pipeline_unittest.cc (right): https://codereview.chromium.org/740663002/diff/400001/media/base/pipeline_unittest.cc#newcode622 media/base/pipeline_unittest.cc:622: // There are cases where duration is reported wrong ...
6 years ago (2014-12-04 02:04:41 UTC) #54
Srirama
https://codereview.chromium.org/740663002/diff/400001/media/base/pipeline_unittest.cc File media/base/pipeline_unittest.cc (right): https://codereview.chromium.org/740663002/diff/400001/media/base/pipeline_unittest.cc#newcode622 media/base/pipeline_unittest.cc:622: // There are cases where duration is reported wrong ...
6 years ago (2014-12-04 03:16:46 UTC) #55
DaleCurtis
https://codereview.chromium.org/740663002/diff/440001/media/base/pipeline_unittest.cc File media/base/pipeline_unittest.cc (right): https://codereview.chromium.org/740663002/diff/440001/media/base/pipeline_unittest.cc#newcode622 media/base/pipeline_unittest.cc:622: // There are cases where duration is reported wrong ...
6 years ago (2014-12-04 19:10:44 UTC) #56
Srirama
On 2014/12/04 19:10:44, DaleCurtis wrote: > https://codereview.chromium.org/740663002/diff/440001/media/base/pipeline_unittest.cc > File media/base/pipeline_unittest.cc (right): > > https://codereview.chromium.org/740663002/diff/440001/media/base/pipeline_unittest.cc#newcode622 > ...
6 years ago (2014-12-08 14:31:20 UTC) #57
DaleCurtis
Ah, thanks for the clarity, sorry I misread the latest patchset. lgtm, thanks for your ...
6 years ago (2014-12-09 05:31:00 UTC) #58
Srirama
On 2014/12/09 05:31:00, DaleCurtis wrote: > Ah, thanks for the clarity, sorry I misread the ...
6 years ago (2014-12-09 05:32:47 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/740663002/440001
6 years ago (2014-12-11 03:08:01 UTC) #61
commit-bot: I haz the power
Committed patchset #10 (id:440001)
6 years ago (2014-12-11 04:20:08 UTC) #62
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/36ab2684f2422d6cb49c2462333816fb9857cfe6 Cr-Commit-Position: refs/heads/master@{#307857}
6 years ago (2014-12-11 04:20:59 UTC) #63
servolk
On 2014/12/11 04:20:59, I haz the power (commit-bot) wrote: > Patchset 10 (id:??) landed as ...
5 years, 8 months ago (2015-04-07 02:02:26 UTC) #64
DaleCurtis
I think ultimately we want to get away from this currentTime == duration ==> ended ...
5 years, 8 months ago (2015-04-07 17:14:54 UTC) #66
servolk
On 2015/04/07 17:14:54, DaleCurtis wrote: > I think ultimately we want to get away from ...
5 years, 8 months ago (2015-04-08 22:01:21 UTC) #67
DaleCurtis
This CL has already been reverted I thought?
5 years, 8 months ago (2015-04-08 22:01:52 UTC) #68
servolk
On 2015/04/08 22:01:52, DaleCurtis wrote: > This CL has already been reverted I thought? Nope, ...
5 years, 8 months ago (2015-04-08 22:32:26 UTC) #69
DaleCurtis
The bug in the description says this is reverted?
5 years, 8 months ago (2015-04-08 22:35:32 UTC) #70
servolk
5 years, 8 months ago (2015-04-09 01:02:47 UTC) #71
Message was sent while issue was closed.
On 2015/04/08 22:35:32, DaleCurtis wrote:
> The bug in the description says this is reverted?

What bug are you referring to? crbug.com/266631? There's a bunch of changes
there, apparently yes, some CLs related to this were reverted. But I'm
specifically concerned about this piece of code that calls Pipeline::SetDuration
from Pipeline::RunEndedCallbackIfNeeded:
https://code.google.com/p/chromium/codesearch#chromium/src/media/base/pipelin...

This is the thing that's causing problems for ending MSE playback and this is
the thing that I'm reverting with my CL
https://codereview.chromium.org/1069253004/

Powered by Google App Engine
This is Rietveld 408576698