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

Issue 9113023: Fire canplaythrough as soon as download defers to fix autoplay (Closed)

Created:
8 years, 11 months ago by vrk (LEFT CHROMIUM)
Modified:
8 years, 11 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, annacc+watch_chromium.org, darin-cc_chromium.org, scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

Fire canplaythrough as soon as download defers to fix autoplay Reenables delayed firing of canplaythrough for media elements, and fixes the bug that had been introduced where a video with autoplay=true sometimes never starts. With this change, a video with autoplay=true should always (though not necessarily immediately) start playback on its own. BUG=106480, 73609 TEST=media_unitests, manually checking video files in various conditions Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=118546

Patch Set 1 #

Total comments: 12

Patch Set 2 : Response to CR #

Patch Set 3 : . #

Total comments: 14

Patch Set 4 : Response to CR #

Total comments: 10

Patch Set 5 : Response to CR #

Patch Set 6 : . #

Patch Set 7 : Rebase to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -129 lines) Patch
M media/base/download_rate_monitor.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M media/base/download_rate_monitor.cc View 1 2 3 4 5 chunks +12 lines, -17 lines 0 comments Download
M media/base/download_rate_monitor_unittest.cc View 1 2 3 4 5 1 chunk +147 lines, -82 lines 0 comments Download
M webkit/media/buffered_data_source.cc View 1 3 chunks +7 lines, -12 lines 0 comments Download
M webkit/media/buffered_data_source_unittest.cc View 1 2 3 4 5 6 7 chunks +31 lines, -7 lines 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 2 3 4 5 6 2 chunks +2 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
vrk (LEFT CHROMIUM)
Tentatively re-enabling the delayed firing of the canplaythrough event, with an attempt to fix the ...
8 years, 11 months ago (2012-01-05 21:18:22 UTC) #1
acolwell GONE FROM CHROMIUM
http://codereview.chromium.org/9113023/diff/1/media/base/download_rate_monitor_unittest.cc File media/base/download_rate_monitor_unittest.cc (left): http://codereview.chromium.org/9113023/diff/1/media/base/download_rate_monitor_unittest.cc#oldcode80 media/base/download_rate_monitor_unittest.cc:80: TEST_F(DownloadRateMonitorTest, DownloadRateGreaterThanBitrate_Pause) { Based on what the comment sayd, ...
8 years, 11 months ago (2012-01-05 22:33:55 UTC) #2
vrk (LEFT CHROMIUM)
Reworked the unit tests a bit. PTAL! http://codereview.chromium.org/9113023/diff/1/media/base/download_rate_monitor_unittest.cc File media/base/download_rate_monitor_unittest.cc (left): http://codereview.chromium.org/9113023/diff/1/media/base/download_rate_monitor_unittest.cc#oldcode80 media/base/download_rate_monitor_unittest.cc:80: TEST_F(DownloadRateMonitorTest, DownloadRateGreaterThanBitrate_Pause) ...
8 years, 11 months ago (2012-01-09 19:01:17 UTC) #3
acolwell GONE FROM CHROMIUM
looking good. Just a little more tuning in the unit tests and I think we'll ...
8 years, 11 months ago (2012-01-09 23:16:57 UTC) #4
vrk (LEFT CHROMIUM)
Thanks for reviewing! http://codereview.chromium.org/9113023/diff/8001/media/base/download_rate_monitor.cc File media/base/download_rate_monitor.cc (right): http://codereview.chromium.org/9113023/diff/8001/media/base/download_rate_monitor.cc#newcode94 media/base/download_rate_monitor.cc:94: is_downloading_data_ = true; On 2012/01/09 23:16:57, ...
8 years, 11 months ago (2012-01-11 00:23:12 UTC) #5
acolwell GONE FROM CHROMIUM
LGTM assuming the answer to the comment in SeekTo() doesn't trigger major changes. http://codereview.chromium.org/9113023/diff/12001/media/base/download_rate_monitor.cc File ...
8 years, 11 months ago (2012-01-11 18:51:01 UTC) #6
vrk (LEFT CHROMIUM)
PTAL, thanks!! http://codereview.chromium.org/9113023/diff/12001/media/base/download_rate_monitor.cc File media/base/download_rate_monitor.cc (right): http://codereview.chromium.org/9113023/diff/12001/media/base/download_rate_monitor.cc#newcode129 media/base/download_rate_monitor.cc:129: if (!is_downloading_data && !has_deferred_) { On 2012/01/11 ...
8 years, 11 months ago (2012-01-13 01:22:48 UTC) #7
acolwell GONE FROM CHROMIUM
LGTM
8 years, 11 months ago (2012-01-13 22:00:37 UTC) #8
vrk (LEFT CHROMIUM)
Haven't landed this yet because it breaks some layout tests. The problem appears to be ...
8 years, 11 months ago (2012-01-18 22:56:25 UTC) #9
sadrul
8 years, 11 months ago (2012-01-21 02:56:12 UTC) #10
Hi! This seems to be causing PrerenderHTML5VideoNetwork (in browser_tests) to
timeout on windows and linux. We are going to revert it?

Powered by Google App Engine
This is Rietveld 408576698