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

Issue 8661002: Fire CanPlayThrough immediately for local and streaming media files (Closed)

Created:
9 years, 1 month ago by vrk (LEFT CHROMIUM)
Modified:
9 years 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, Paweł Hajdan Jr., scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

Fire CanPlayThrough immediately for local and streaming media files Changes DownloadRateMonitor logic to know to immediately fire CanPlayThrough for media files with local sources, including local webcam streams. Renamed the concept of "loaded" source to "local" source in the media pipeline for clarity. Also updated the DownloadRateMonitor logic slightly to lean toward optimism in firing CanPlayThrough, including firing the event immediately for streaming media. BUG=105163 TEST=media_unittests,test_shell_tests, wjia's media stream test page works Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112560

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changed loaded -> local, removed media_stream parameter as per offline convo with scherkus #

Patch Set 3 : Update MediaLog event #

Patch Set 4 : Add test for streaming case to DownloadRateMonitor #

Total comments: 1

Patch Set 5 : Move IsLoaded from FilterHost to demuxer #

Patch Set 6 : . #

Patch Set 7 : fix media/event-attributes.html #

Total comments: 8

Patch Set 8 : Response to CR #

Patch Set 9 : . #

Patch Set 10 : Rebase ToT #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -160 lines) Patch
M media/base/composite_filter.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -10 lines 0 comments Download
M media/base/demuxer.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M media/base/download_rate_monitor.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -5 lines 0 comments Download
M media/base/download_rate_monitor.cc View 1 2 3 4 5 6 7 3 chunks +20 lines, -7 lines 0 comments Download
M media/base/download_rate_monitor_unittest.cc View 1 2 3 4 5 6 7 7 chunks +27 lines, -20 lines 0 comments Download
M media/base/filter_host.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -6 lines 0 comments Download
M media/base/media_log.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M media/base/media_log_event.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M media/base/mock_filter_host.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M media/base/mock_filters.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/pipeline.h View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M media/base/pipeline_impl.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -7 lines 0 comments Download
M media/base/pipeline_impl.cc View 1 2 3 4 5 6 7 6 chunks +10 lines, -27 lines 0 comments Download
M media/base/pipeline_impl_unittest.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M media/filters/chunk_demuxer.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M media/filters/dummy_demuxer.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -2 lines 0 comments Download
M media/filters/dummy_demuxer.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -2 lines 1 comment Download
M media/filters/dummy_demuxer_factory.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M media/filters/dummy_demuxer_factory.cc View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -1 line 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -1 line 0 comments Download
M media/filters/ffmpeg_demuxer_factory.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -3 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M webkit/media/buffered_data_source.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/media/buffered_data_source.cc View 1 2 3 4 5 6 7 5 chunks +1 line, -9 lines 0 comments Download
M webkit/media/buffered_data_source_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +1 line, -5 lines 0 comments Download
M webkit/media/simple_data_source.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/media/simple_data_source_unittest.cc View 1 2 3 4 5 6 7 10 chunks +11 lines, -15 lines 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -11 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
vrk (LEFT CHROMIUM)
Fixes the bug uncovered by wjia in http://codereview.chromium.org/8625002.
9 years, 1 month ago (2011-11-22 22:21:13 UTC) #1
wjia(left Chromium)
vrk, thanks for the fix! would it good to let PipelineImpl decide only two cases? ...
9 years, 1 month ago (2011-11-22 23:01:17 UTC) #2
scherkus (not reviewing)
http://codereview.chromium.org/8661002/diff/1/media/base/download_rate_monitor.h File media/base/download_rate_monitor.h (right): http://codereview.chromium.org/8661002/diff/1/media/base/download_rate_monitor.h#newcode159 media/base/download_rate_monitor.h:159: bool streaming_; wouldn't setting streaming=true for web cams also ...
9 years, 1 month ago (2011-11-23 01:59:43 UTC) #3
vrk (LEFT CHROMIUM)
> would it good to let PipelineImpl decide only two cases? > 1. need download_rate_monitor; ...
9 years, 1 month ago (2011-11-23 21:29:45 UTC) #4
wjia(left Chromium)
lgtm
9 years, 1 month ago (2011-11-23 21:43:10 UTC) #5
wjia(left Chromium)
On Wed, Nov 23, 2011 at 1:29 PM, <vrk@chromium.org> wrote: > would it good to ...
9 years, 1 month ago (2011-11-23 21:50:21 UTC) #6
vrk (LEFT CHROMIUM)
scherkus: PTAL. Changed loaded -> local + fallout and updated the description. wjia: FYI the ...
9 years, 1 month ago (2011-11-23 23:24:51 UTC) #7
scherkus (not reviewing)
http://codereview.chromium.org/8661002/diff/9003/webkit/media/webmediaplayer_impl.cc File webkit/media/webmediaplayer_impl.cc (right): http://codereview.chromium.org/8661002/diff/9003/webkit/media/webmediaplayer_impl.cc#newcode296 webkit/media/webmediaplayer_impl.cc:296: pipeline_->SetLocalSource(true); we should try to have a single way ...
9 years ago (2011-11-28 21:35:03 UTC) #8
acolwell GONE FROM CHROMIUM
I'm a little late to this party, but I've got a question. Why can't we ...
9 years ago (2011-11-28 21:49:55 UTC) #9
wjia(left Chromium)
On 2011/11/28 21:49:55, acolwell wrote: > I'm a little late to this party, but I've ...
9 years ago (2011-11-28 22:06:06 UTC) #10
acolwell GONE FROM CHROMIUM
On 2011/11/28 22:06:06, wjia wrote: > On 2011/11/28 21:49:55, acolwell wrote: > > I'm a ...
9 years ago (2011-11-28 22:27:17 UTC) #11
scherkus (not reviewing)
acolwell and I chatted -- I agree with him so I'll let him take on ...
9 years ago (2011-11-29 00:45:10 UTC) #12
vrk (LEFT CHROMIUM)
acolwell: PTAL. I moved the "IsLocal" decision to the demuxers, and here's what it looks ...
9 years ago (2011-11-29 23:54:05 UTC) #13
vrk (LEFT CHROMIUM)
> BTW, this CL now breaks the media/event-attributes.html layout test because > there are no ...
9 years ago (2011-11-30 01:23:49 UTC) #14
acolwell GONE FROM CHROMIUM
Looking good. Just a few suggestions to cleanup more of the code. http://codereview.chromium.org/8661002/diff/21002/media/base/filter_host.h File media/base/filter_host.h ...
9 years ago (2011-11-30 19:26:11 UTC) #15
vrk (LEFT CHROMIUM)
http://codereview.chromium.org/8661002/diff/21002/media/base/filter_host.h File media/base/filter_host.h (right): http://codereview.chromium.org/8661002/diff/21002/media/base/filter_host.h#newcode60 media/base/filter_host.h:60: virtual void SetStreaming(bool streaming) = 0; On 2011/11/30 19:26:11, ...
9 years ago (2011-12-01 02:11:35 UTC) #16
acolwell GONE FROM CHROMIUM
LGTM http://codereview.chromium.org/8661002/diff/38001/media/filters/dummy_demuxer.cc File media/filters/dummy_demuxer.cc (right): http://codereview.chromium.org/8661002/diff/38001/media/filters/dummy_demuxer.cc#newcode69 media/filters/dummy_demuxer.cc:69: return false; nit: Might want to add a ...
9 years ago (2011-12-01 04:25:00 UTC) #17
scherkus (not reviewing)
9 years ago (2011-12-01 22:25:19 UTC) #18
LGTM

Powered by Google App Engine
This is Rietveld 408576698