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

Issue 1796403002: Don't mark a WebMediaPlayer as idle until it has size and first frame. (Closed)

Created:
4 years, 9 months ago by DaleCurtis
Modified:
4 years, 9 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-media_chromium.org, posciak+watch_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 mark a WebMediaPlayer as idle until it has size and first frame. Slow connections, large MediaSource appends, or open-in-background can result in large delays from when the WMP is constructed until it reaches a state appropriate for suspension. Waiting until we have the first frame and size information to mark a player as idle should resolve any issues around suspending too early. BUG=592706 TEST=fixed unittests. Suspend does not occur w/ open-in-background. Committed: https://crrev.com/8e4dc68fcf8ab6f808e2b819e334098fcfd2f59f Cr-Commit-Position: refs/heads/master@{#381156}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -8 lines) Patch
M content/renderer/media/android/webmediaplayer_android.cc View 1 chunk +6 lines, -0 lines 2 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate_browsertest.cc View 2 chunks +11 lines, -4 lines 0 comments Download
M media/blink/webmediaplayer_delegate.h View 1 chunk +4 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
DaleCurtis
4 years, 9 months ago (2016-03-15 00:46:45 UTC) #2
sandersd (OOO until July 31)
lgtm
4 years, 9 months ago (2016-03-15 00:53:43 UTC) #3
wolenetz
Mostly good. Just a WMPA case that's concerning: https://codereview.chromium.org/1796403002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1796403002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode972 content/renderer/media/android/webmediaplayer_android.cc:972: // ...
4 years, 9 months ago (2016-03-15 01:08:24 UTC) #4
wolenetz
https://codereview.chromium.org/1796403002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1796403002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode972 content/renderer/media/android/webmediaplayer_android.cc:972: // If we're paused after we receive metadata for ...
4 years, 9 months ago (2016-03-15 01:11:19 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1796403002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1796403002/1
4 years, 9 months ago (2016-03-15 01:11:35 UTC) #7
wolenetz
Oh, and LGTM :)
4 years, 9 months ago (2016-03-15 01:11:41 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-15 02:30:39 UTC) #9
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 02:31:32 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8e4dc68fcf8ab6f808e2b819e334098fcfd2f59f
Cr-Commit-Position: refs/heads/master@{#381156}

Powered by Google App Engine
This is Rietveld 408576698