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

Issue 2644723004: [Video] Don't pause video-only elements if they're already paused... (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, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Video] Don't pause video-only elements if they're already paused... ...or if the pipeline is not running, resuming or seeking. BUG=681443 TEST=manual Review-Url: https://codereview.chromium.org/2644723004 Cr-Commit-Position: refs/heads/master@{#445250} Committed: https://chromium.googlesource.com/chromium/src/+/56e1f3949a865e2cccf125d0f6858d47a0e423c8

Patch Set 1 #

Patch Set 2 : Added PauseVideoIfNeeded #

Total comments: 1

Patch Set 3 : Added extra checks #

Patch Set 4 : Improved comments, extracted method #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -14 lines) Patch
M media/blink/webmediaplayer_impl.h View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 chunks +35 lines, -14 lines 3 comments Download

Messages

Total messages: 30 (14 generated)
whywhat
PTaL We discussed a proper fix would move the pausing logic to UpdatePlayState, however, this ...
3 years, 11 months ago (2017-01-19 23:50:24 UTC) #2
whywhat
3 years, 11 months ago (2017-01-20 17:59:39 UTC) #8
DaleCurtis
Seems like this belongs in ShouldPauseVideoWhenHidden() ?
3 years, 11 months ago (2017-01-20 18:20:23 UTC) #9
sandersd (OOO until July 31)
> ...or if the pipeline is resuming or seeking. Does pausing actually cause problems during ...
3 years, 11 months ago (2017-01-20 18:58:57 UTC) #10
whywhat
Added PauseVideoIfNeeded
3 years, 11 months ago (2017-01-20 21:11:54 UTC) #11
whywhat
On 2017/01/20 at 18:58:57, sandersd wrote: > > ...or if the pipeline is resuming or ...
3 years, 11 months ago (2017-01-20 21:15:46 UTC) #12
whywhat
On 2017/01/20 at 21:15:46, whywhat wrote: > On 2017/01/20 at 18:58:57, sandersd wrote: > > ...
3 years, 11 months ago (2017-01-20 21:17:03 UTC) #13
sandersd (OOO until July 31)
lgtm https://codereview.chromium.org/2644723004/diff/20001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2644723004/diff/20001/media/blink/webmediaplayer_impl.cc#newcode2184 media/blink/webmediaplayer_impl.cc:2184: if (is_pipeline_resuming_ || seeking_ || paused_ || paused_when_hidden_) ...
3 years, 11 months ago (2017-01-20 21:24:19 UTC) #14
sandersd (OOO until July 31)
On 2017/01/20 21:17:03, whywhat wrote: > On 2017/01/20 at 21:15:46, whywhat wrote: > > On ...
3 years, 11 months ago (2017-01-20 21:26:32 UTC) #15
whywhat
Added extra checks
3 years, 11 months ago (2017-01-20 22:19:45 UTC) #16
whywhat
Improved comments, extracted method
3 years, 11 months ago (2017-01-20 22:43:53 UTC) #17
sandersd (OOO until July 31)
lgtm. One optional refactoring suggestion. https://codereview.chromium.org/2644723004/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2644723004/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1413 media/blink/webmediaplayer_impl.cc:1413: if (ShouldPauseVideoWhenHidden()) { Should ...
3 years, 11 months ago (2017-01-20 22:57:00 UTC) #19
whywhat
https://codereview.chromium.org/2644723004/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2644723004/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1413 media/blink/webmediaplayer_impl.cc:1413: if (ShouldPauseVideoWhenHidden()) { On 2017/01/20 at 22:57:00, sandersd wrote: ...
3 years, 11 months ago (2017-01-20 23:24:45 UTC) #20
sandersd (OOO until July 31)
https://codereview.chromium.org/2644723004/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2644723004/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1413 media/blink/webmediaplayer_impl.cc:1413: if (ShouldPauseVideoWhenHidden()) { On 2017/01/20 23:24:45, whywhat wrote: > ...
3 years, 11 months ago (2017-01-20 23:29:42 UTC) #23
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/2644723004/60001
3 years, 11 months ago (2017-01-21 02:00:56 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-21 02:07:16 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/56e1f3949a865e2cccf125d0f685...

Powered by Google App Engine
This is Rietveld 408576698