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

Issue 2567833002: [Video] Pause videos with no audio when in the background. (Closed)

Created:
4 years ago by whywhat
Modified:
3 years, 11 months ago
CC:
apacible+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, miu+watch_chromium.org, xjz+watch_chromium.org, mlamouri (slow - plz ping)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Video] Pause videos with no audio when in the background. Pause video-only players when they go to background and continue playback when they go into foreground and hasn't been paused explicitly in the mean time. Behind the experiment for optimizing background video playback. BUG=671381 TEST=Manual Review-Url: https://codereview.chromium.org/2567833002 Cr-Commit-Position: refs/heads/master@{#442110} Committed: https://chromium.googlesource.com/chromium/src/+/eb9098d5864f531fdc7d72550c4928daed0e626b

Patch Set 1 #

Patch Set 2 : Don't suspend video if paused bug has no audio #

Patch Set 3 : Don't suspend video if paused for some time but has no audio #

Total comments: 3

Patch Set 4 : Pause videos without audio #

Total comments: 2

Patch Set 5 : Added comments #

Patch Set 6 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -7 lines) Patch
M media/blink/webmediaplayer_impl.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 5 chunks +36 lines, -7 lines 1 comment Download

Messages

Total messages: 35 (16 generated)
whywhat
PTaL I think I should also prevent suspended video only media from being paused - ...
4 years ago (2016-12-10 01:20:18 UTC) #2
whywhat
Don't suspend video if paused for some time but has no audio
4 years ago (2016-12-10 02:17:55 UTC) #3
whywhat
+Dale since Dan is OOO
4 years ago (2016-12-13 17:58:09 UTC) #5
DaleCurtis
Seems okay, needs update to the WMPI tests though.
4 years ago (2016-12-13 20:25:47 UTC) #7
sandersd (OOO until July 31)
This is a bit of a hack (in that it changes the meaning of IsBackgroundSuspendEnabled(), ...
4 years ago (2016-12-15 01:09:47 UTC) #8
whywhat
On 2016/12/15 at 01:09:47, sandersd wrote: > This is a bit of a hack (in ...
4 years ago (2016-12-16 01:20:21 UTC) #9
whywhat
https://codereview.chromium.org/2567833002/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2567833002/diff/40001/media/blink/webmediaplayer_impl.cc#newcode1960 media/blink/webmediaplayer_impl.cc:1960: if (paused_ || !pipeline_controller_.IsSuspended() || !hasAudio()) On 2016/12/15 at ...
4 years ago (2016-12-16 01:20:24 UTC) #10
whywhat
Dan, could you elaborate a bit more about the maintainability question? To me, the change ...
4 years ago (2016-12-16 20:09:37 UTC) #11
sandersd (OOO until July 31)
> Dan, could you elaborate a bit more about the maintainability question? > > To ...
4 years ago (2016-12-16 21:09:40 UTC) #12
whywhat
Pause videos without audio
3 years, 11 months ago (2017-01-05 22:58:59 UTC) #13
whywhat
Updated the patch and the CL description. PTAL
3 years, 11 months ago (2017-01-06 01:36:26 UTC) #15
sandersd (OOO until July 31)
lgtm % source code comment request. https://codereview.chromium.org/2567833002/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2567833002/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1349 media/blink/webmediaplayer_impl.cc:1349: paused_when_hidden_ = true; ...
3 years, 11 months ago (2017-01-06 01:44:15 UTC) #16
whywhat
Added comments
3 years, 11 months ago (2017-01-06 16:56:35 UTC) #17
whywhat
https://codereview.chromium.org/2567833002/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2567833002/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1349 media/blink/webmediaplayer_impl.cc:1349: paused_when_hidden_ = true; On 2017/01/06 at 01:44:15, sandersd wrote: ...
3 years, 11 months ago (2017-01-06 16:59:31 UTC) #18
sandersd (OOO until July 31)
Still lgtm. Comments are enough for now that I don't think any reorganization is immediately ...
3 years, 11 months ago (2017-01-06 20:40:46 UTC) #23
whywhat
Rebase
3 years, 11 months ago (2017-01-06 22:22:22 UTC) #24
whywhat
https://codereview.chromium.org/2567833002/diff/100001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2567833002/diff/100001/media/blink/webmediaplayer_impl.cc#newcode2074 media/blink/webmediaplayer_impl.cc:2074: return hasVideo() && !hasAudio(); Mounir - should we add ...
3 years, 11 months ago (2017-01-06 22:23:48 UTC) #25
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/2567833002/100001
3 years, 11 months ago (2017-01-07 00:26:53 UTC) #32
commit-bot: I haz the power
3 years, 11 months ago (2017-01-07 00:33:35 UTC) #35
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/eb9098d5864f531fdc7d72550c49...

Powered by Google App Engine
This is Rietveld 408576698