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

Issue 1798213002: Disable "pause-and-buffer" on Android, cancel suspended players. (Closed)

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

Disable "pause-and-buffer" on Android, cancel suspended players. The Android MediaPlayer never supported "pause-and-buffer" so to avoid unexpected behavior on metered networks, disable this feature for WebMediaPlayerImpl as well. This also releases the network connection for suspended instances of WebMediaPlayerImpl. Due to "pause-and-buffer" on non-Android platforms only instances that the user has never interacted with (i.e. they have not played and then paused the player) will be released. On Android, all suspended players will lose their network connection after reaches the deferred state. BUG=594669 TEST=new unittests, verified connection is closed manually. Committed: https://crrev.com/37fe586e648a966438f0b26473155cba830d497e Cr-Commit-Position: refs/heads/master@{#381280}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix test bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -19 lines) Patch
M media/blink/buffered_data_source.h View 2 chunks +12 lines, -8 lines 0 comments Download
M media/blink/buffered_data_source.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M media/blink/buffered_data_source_unittest.cc View 2 chunks +38 lines, -1 line 0 comments Download
M media/blink/multibuffer_data_source.h View 1 chunk +6 lines, -4 lines 0 comments Download
M media/blink/multibuffer_data_source.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M media/blink/multibuffer_data_source_unittest.cc View 1 2 chunks +42 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.cc View 4 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
hubbe
https://codereview.chromium.org/1798213002/diff/1/media/blink/multibuffer_data_source_unittest.cc File media/blink/multibuffer_data_source_unittest.cc (right): https://codereview.chromium.org/1798213002/diff/1/media/blink/multibuffer_data_source_unittest.cc#newcode1248 media/blink/multibuffer_data_source_unittest.cc:1248: while (active_loader() && !active_loader()->deferred()) { You probably want active_loader_allownull() ...
4 years, 9 months ago (2016-03-14 23:16:05 UTC) #2
DaleCurtis
PTAL. Thanks! https://codereview.chromium.org/1798213002/diff/1/media/blink/multibuffer_data_source_unittest.cc File media/blink/multibuffer_data_source_unittest.cc (right): https://codereview.chromium.org/1798213002/diff/1/media/blink/multibuffer_data_source_unittest.cc#newcode1248 media/blink/multibuffer_data_source_unittest.cc:1248: while (active_loader() && !active_loader()->deferred()) { On 2016/03/14 ...
4 years, 9 months ago (2016-03-14 23:24:38 UTC) #3
hubbe
lgtm
4 years, 9 months ago (2016-03-15 18:17:20 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1798213002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1798213002/20001
4 years, 9 months ago (2016-03-15 18:19:19 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-15 19:29:18 UTC) #7
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 19:30:50 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/37fe586e648a966438f0b26473155cba830d497e
Cr-Commit-Position: refs/heads/master@{#381280}

Powered by Google App Engine
This is Rietveld 408576698