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

Issue 2618883002: [Media, Video] Enable the video track for a new renderer. (Closed)

Created:
3 years, 11 months ago by whywhat
Modified:
3 years, 11 months ago
CC:
apacible+watch_chromium.org, chromium-reviews, erickung+watch_chromium.org, feature-media-reviews_chromium.org, miu+watch_chromium.org, posciak+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media, Video] Enable the video track for a new renderer. Video track needs to be reenabled before the new renderer is created so that the callbacks attach properly. For that, add two new callbacks to PipelineController for when the pipeline is about to resume and is resumed. This adds a potential problem when the video is shown or hidden in between the two events. So don't change the video track if the pipeline is resuming or seeking but check for the necessary conditions in the resumed callback. BUG=678374 TEST=media_[blink_]unittests + manual testing Review-Url: https://codereview.chromium.org/2618883002 Cr-Commit-Position: refs/heads/master@{#443404} Committed: https://chromium.googlesource.com/chromium/src/+/2135a640a1547f44b62828bac84dc713d39652c6

Patch Set 1 #

Patch Set 2 : Reselect the video track before suspending #

Patch Set 3 : Added ResumedCB to PipelineController #

Total comments: 4

Patch Set 4 : Immediate resume_cb_, fixed unittests #

Total comments: 4

Patch Set 5 : Added OnBeforeResume callback #

Total comments: 14

Patch Set 6 : Addressed comments #

Patch Set 7 : Added unittest for ShouldDisableVideoWhenHidden #

Patch Set 8 : Remove OnHidden() from start #

Patch Set 9 : Fixed debug tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -23 lines) Patch
M media/blink/webmediaplayer_impl.h View 1 2 3 4 5 6 7 3 chunks +30 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 8 chunks +77 lines, -20 lines 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +38 lines, -0 lines 0 comments Download
M media/filters/pipeline_controller.h View 1 2 3 4 2 chunks +13 lines, -1 line 0 comments Download
M media/filters/pipeline_controller.cc View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M media/filters/pipeline_controller_unittest.cc View 1 2 3 4 4 chunks +14 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 52 (28 generated)
whywhat
Reselect the video track before suspending
3 years, 11 months ago (2017-01-06 05:17:44 UTC) #1
whywhat
Forgot to publish this yesterday Seems like we agreed offline on having a separate callback ...
3 years, 11 months ago (2017-01-06 22:08:18 UTC) #3
sandersd (OOO until July 31)
On 2017/01/06 22:08:18, whywhat wrote: > Forgot to publish this yesterday > > Seems like ...
3 years, 11 months ago (2017-01-06 22:14:53 UTC) #4
whywhat
Added ResumedCB to PipelineController
3 years, 11 months ago (2017-01-06 23:05:48 UTC) #5
sandersd (OOO until July 31)
https://codereview.chromium.org/2618883002/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2618883002/diff/40001/media/blink/webmediaplayer_impl.cc#newcode1069 media/blink/webmediaplayer_impl.cc:1069: if (seeking_) { Shouldn't be needed anymore? https://codereview.chromium.org/2618883002/diff/40001/media/filters/pipeline_controller.cc File ...
3 years, 11 months ago (2017-01-07 00:56:17 UTC) #10
whywhat
Immediate resume_cb_, fixed unittests
3 years, 11 months ago (2017-01-07 02:02:13 UTC) #11
whywhat
https://codereview.chromium.org/2618883002/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2618883002/diff/40001/media/blink/webmediaplayer_impl.cc#newcode1069 media/blink/webmediaplayer_impl.cc:1069: if (seeking_) { On 2017/01/07 at 00:56:17, sandersd wrote: ...
3 years, 11 months ago (2017-01-07 02:02:35 UTC) #12
sandersd (OOO until July 31)
This is looking quite nice, it's barely a hack at this point. https://codereview.chromium.org/2618883002/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc ...
3 years, 11 months ago (2017-01-09 20:12:49 UTC) #17
whywhat
https://codereview.chromium.org/2618883002/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2618883002/diff/60001/media/blink/webmediaplayer_impl.cc#newcode483 media/blink/webmediaplayer_impl.cc:483: if (video_track_disabled_) { On 2017/01/09 at 20:12:49, sandersd wrote: ...
3 years, 11 months ago (2017-01-10 01:04:48 UTC) #18
whywhat
Added OnBeforeResume callback
3 years, 11 months ago (2017-01-10 03:33:01 UTC) #19
whywhat
PTAL
3 years, 11 months ago (2017-01-10 03:33:59 UTC) #22
sandersd (OOO until July 31)
https://codereview.chromium.org/2618883002/diff/80001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2618883002/diff/80001/media/blink/webmediaplayer_impl.cc#newcode1092 media/blink/webmediaplayer_impl.cc:1092: OnHidden(); OnHidden() does a bit more than what is ...
3 years, 11 months ago (2017-01-10 21:34:38 UTC) #26
whywhat
Addressed comments
3 years, 11 months ago (2017-01-10 23:10:11 UTC) #27
whywhat
https://codereview.chromium.org/2618883002/diff/80001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2618883002/diff/80001/media/blink/webmediaplayer_impl.cc#newcode1092 media/blink/webmediaplayer_impl.cc:1092: OnHidden(); On 2017/01/10 at 21:34:37, sandersd wrote: > OnHidden() ...
3 years, 11 months ago (2017-01-11 19:41:30 UTC) #32
whywhat
Added unittest for ShouldDisableVideoWhenHidden
3 years, 11 months ago (2017-01-11 19:44:46 UTC) #33
sandersd (OOO until July 31)
lgtm https://codereview.chromium.org/2618883002/diff/80001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2618883002/diff/80001/media/blink/webmediaplayer_impl.cc#newcode1092 media/blink/webmediaplayer_impl.cc:1092: OnHidden(); On 2017/01/11 19:41:30, whywhat wrote: > On ...
3 years, 11 months ago (2017-01-11 21:54:51 UTC) #34
whywhat
Remove OnHidden() from start
3 years, 11 months ago (2017-01-11 22:36:28 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2618883002/140001
3 years, 11 months ago (2017-01-12 00:15:36 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/289939)
3 years, 11 months ago (2017-01-12 00:47:44 UTC) #41
whywhat
Fixed debug tests
3 years, 11 months ago (2017-01-12 16:44:04 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2618883002/160001
3 years, 11 months ago (2017-01-12 16:54:15 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/367785)
3 years, 11 months ago (2017-01-12 18:59:29 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2618883002/160001
3 years, 11 months ago (2017-01-12 23:43:54 UTC) #49
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 00:18:01 UTC) #52
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/2135a640a1547f44b62828bac84d...

Powered by Google App Engine
This is Rietveld 408576698