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

Issue 2039793005: Don't resume paused media. Don't resume playing media after timeout. (Closed)

Created:
4 years, 6 months ago by DaleCurtis
Modified:
4 years, 6 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

Don't resume paused media. Don't resume playing media after timeout. As titled. We shouldn't resume paused media because there's no reason to not wait for the user interaction. We shouldn't resume playing media if the user has moved on to other tasks and comes back some time later. The idle timeout for resuming playing media is 5 seconds as chosen by a dice roll. BUG=617815 TEST=media suspends and resumes as expected. Committed: https://crrev.com/8b8505e78452b365b861025d7b3364ca4b1e5849 Cr-Commit-Position: refs/heads/master@{#399287}

Patch Set 1 #

Patch Set 2 : Ensure OnHidden() actually happened. #

Total comments: 4

Patch Set 3 : Reimplement. Add tests. #

Total comments: 8

Patch Set 4 : Comments. #

Patch Set 5 : Comments. #

Total comments: 4

Patch Set 6 : Condense. #

Patch Set 7 : Remove now incorrect test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -10 lines) Patch
M media/blink/webmediaplayer_impl.h View 1 2 3 4 chunks +10 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 7 chunks +38 lines, -5 lines 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 1 2 3 4 5 6 4 chunks +71 lines, -5 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
DaleCurtis
This exposes a crash with the deferred renderer, something to do with the copied image. ...
4 years, 6 months ago (2016-06-07 00:00:48 UTC) #2
DaleCurtis
(Confirmed no problem w/ watk@'s patch to kill copying)
4 years, 6 months ago (2016-06-07 00:02:53 UTC) #3
sandersd (OOO until July 31)
https://codereview.chromium.org/2039793005/diff/20001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2039793005/diff/20001/media/blink/webmediaplayer_impl.cc#newcode1117 media/blink/webmediaplayer_impl.cc:1117: // this here since |delegate_state_| is generally cleared during ...
4 years, 6 months ago (2016-06-07 01:41:16 UTC) #4
DaleCurtis
Redone as we discussed, please take a look.
4 years, 6 months ago (2016-06-08 22:23:15 UTC) #6
sandersd (OOO until July 31)
https://codereview.chromium.org/2039793005/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2039793005/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1119 media/blink/webmediaplayer_impl.cc:1119: if (pipeline_controller_.IsSuspended() && !paused_) { We shouldn't schedule this ...
4 years, 6 months ago (2016-06-08 23:16:28 UTC) #7
DaleCurtis
https://codereview.chromium.org/2039793005/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2039793005/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1119 media/blink/webmediaplayer_impl.cc:1119: if (pipeline_controller_.IsSuspended() && !paused_) { On 2016/06/08 at 23:16:27, ...
4 years, 6 months ago (2016-06-10 00:02:11 UTC) #8
sandersd (OOO until July 31)
https://codereview.chromium.org/2039793005/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2039793005/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1552 media/blink/webmediaplayer_impl.cc:1552: if (is_suspended && !result.is_suspended && paused_) On 2016/06/10 00:02:11, ...
4 years, 6 months ago (2016-06-10 01:15:09 UTC) #9
DaleCurtis
https://codereview.chromium.org/2039793005/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2039793005/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1552 media/blink/webmediaplayer_impl.cc:1552: if (is_suspended && !result.is_suspended && paused_) On 2016/06/10 at ...
4 years, 6 months ago (2016-06-10 18:20:31 UTC) #10
sandersd (OOO until July 31)
lgtm https://codereview.chromium.org/2039793005/diff/100001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2039793005/diff/100001/media/blink/webmediaplayer_impl.cc#newcode1529 media/blink/webmediaplayer_impl.cc:1529: // The |paused_| state is not reliable until ...
4 years, 6 months ago (2016-06-10 18:27:12 UTC) #11
DaleCurtis
https://codereview.chromium.org/2039793005/diff/100001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2039793005/diff/100001/media/blink/webmediaplayer_impl.cc#newcode1529 media/blink/webmediaplayer_impl.cc:1529: // The |paused_| state is not reliable until we ...
4 years, 6 months ago (2016-06-10 19:54:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039793005/140001
4 years, 6 months ago (2016-06-10 19:55:06 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/174647)
4 years, 6 months ago (2016-06-10 20:18:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039793005/160001
4 years, 6 months ago (2016-06-10 20:30:34 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 6 months ago (2016-06-10 21:59:30 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 21:59:53 UTC) #23
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 22:02:26 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8b8505e78452b365b861025d7b3364ca4b1e5849
Cr-Commit-Position: refs/heads/master@{#399287}

Powered by Google App Engine
This is Rietveld 408576698