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

Issue 269002: Report stalled event correctly for <video> (Closed)

Created:
11 years, 2 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Report stalled event correctly for <video> BUG=20127 BUG=13568 TEST=Opens a web page, stalled event should be fire only if network is actuall stalled. What this patch does: 1. Report Loading / Idle according to whether we are actively receiving data in the BuffereResourceLoader. This is done by signaling the network events to BufferedDataSource and then to the media playback pipeline. 2. Report byteLoaded() as the last byte position buffered. This will enable an actual ticking progress for the progress event. With this value actually ticking, stalled event is suppressed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29235

Patch Set 1 #

Patch Set 2 : stalled only #

Total comments: 13

Patch Set 3 : comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -153 lines) Patch
M media/base/filter_host.h View 1 chunk +4 lines, -1 line 0 comments Download
M media/base/mock_filter_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/base/pipeline_impl.h View 6 chunks +12 lines, -0 lines 0 comments Download
M media/base/pipeline_impl.cc View 4 chunks +28 lines, -0 lines 0 comments Download
M webkit/glue/media/buffered_data_source.h View 1 2 14 chunks +49 lines, -18 lines 0 comments Download
M webkit/glue/media/buffered_data_source.cc View 1 2 26 chunks +212 lines, -111 lines 1 comment Download
M webkit/glue/media/buffered_data_source_unittest.cc View 1 2 14 chunks +37 lines, -21 lines 0 comments Download
M webkit/glue/webmediaplayer_impl.h View 3 chunks +6 lines, -0 lines 0 comments Download
M webkit/glue/webmediaplayer_impl.cc View 1 2 5 chunks +26 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Alpha Left Google
11 years, 2 months ago (2009-10-07 05:58:30 UTC) #1
Alpha Left Google
This is really a not-so-nice fix for the stalled event. In the end I still ...
11 years, 2 months ago (2009-10-07 06:01:04 UTC) #2
scherkus (not reviewing)
http://codereview.chromium.org/269002/diff/1001/2005 File webkit/glue/media/buffered_data_source.cc (right): http://codereview.chromium.org/269002/diff/1001/2005#newcode145 Line 145: if (!buffer_.get()) hmm the next line destroys the ...
11 years, 2 months ago (2009-10-15 00:15:53 UTC) #3
Alpha Left Google
http://codereview.chromium.org/269002/diff/1001/2005 File webkit/glue/media/buffered_data_source.cc (right): http://codereview.chromium.org/269002/diff/1001/2005#newcode145 Line 145: if (!buffer_.get()) On 2009/10/15 00:15:54, scherkus wrote: > ...
11 years, 2 months ago (2009-10-15 01:35:36 UTC) #4
Alpha Left Google
ping
11 years, 2 months ago (2009-10-15 23:38:19 UTC) #5
scherkus (not reviewing)
11 years, 2 months ago (2009-10-15 23:51:38 UTC) #6
one nit but LGTM

what's unfortunate is I think most of this will change after progress events are
removed

http://codereview.chromium.org/269002/diff/7001/7006
File webkit/glue/media/buffered_data_source.cc (right):

http://codereview.chromium.org/269002/diff/7001/7006#newcode102
Line 102: Callback0::Type* event_callback) {
use NetworkEventCallback instead

Powered by Google App Engine
This is Rietveld 408576698