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

Issue 10918052: create a separate WebMediaPlayer for URL derived from media stream (Closed)

Created:
8 years, 3 months ago by wjia(left Chromium)
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org
Visibility:
Public.

Description

create a separate WebMediaPlayer for URL derived from media stream When the "src" of <video> is derived from media stream, WebMediaPlayerMS is created. Its real time charateristics allows it to simplify some controls in WebMediaPlayer, e.g., no buffering, no preload, etc. WebMediaPlayerMS has 2 different VideoFrameProviders: LocalVideoCapture(for local preview) and RTCVideoRender(for remote view). Audio will be added in the following patches. BUG=142988, 110938 TEST=turn on WebMediaPlayer_MS, run apprtc.appspot.com/?debug=loopback Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=158490

Patch Set 1 #

Patch Set 2 : rebase and corresponding change for DRT #

Patch Set 3 : fix win build #

Total comments: 84

Patch Set 4 : code review #

Total comments: 18

Patch Set 5 : code review #

Total comments: 14

Patch Set 6 : code review #

Total comments: 2

Patch Set 7 : fix DRT #

Patch Set 8 : code review #

Total comments: 2

Patch Set 9 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1377 lines, -16 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
A content/renderer/media/local_video_capture.h View 1 2 3 1 chunk +79 lines, -0 lines 0 comments Download
A content/renderer/media/local_video_capture.cc View 1 2 3 4 1 chunk +153 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_impl.h View 1 2 3 4 5 6 2 chunks +15 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 5 6 3 chunks +92 lines, -0 lines 0 comments Download
A content/renderer/media/rtc_video_renderer.h View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
A content/renderer/media/rtc_video_renderer.cc View 1 2 3 1 chunk +107 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -2 lines 0 comments Download
M media/video/capture/video_capture.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webkit/media/media_stream_client.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
A webkit/media/simple_video_frame_provider.h View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
A webkit/media/simple_video_frame_provider.cc View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download
A webkit/media/video_frame_provider.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A webkit/media/video_frame_provider.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M webkit/media/webkit_media.gypi View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
A webkit/media/webmediaplayer_ms.h View 1 2 3 4 5 1 chunk +170 lines, -0 lines 0 comments Download
A webkit/media/webmediaplayer_ms.cc View 1 2 3 4 1 chunk +398 lines, -0 lines 0 comments Download
M webkit/support/test_media_stream_client.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -13 lines 0 comments Download
M webkit/support/test_media_stream_client.cc View 1 2 3 4 5 6 2 chunks +24 lines, -1 line 0 comments Download
M webkit/support/webkit_support.cc View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
wjia(left Chromium)
8 years, 3 months ago (2012-09-04 03:44:13 UTC) #1
scherkus (not reviewing)
nice! https://chromiumcodereview.appspot.com/10918052/diff/7010/content/renderer/media/local_video_capture.cc File content/renderer/media/local_video_capture.cc (right): https://chromiumcodereview.appspot.com/10918052/diff/7010/content/renderer/media/local_video_capture.cc#newcode132 content/renderer/media/local_video_capture.cc:132: // Assume YV12 format. that seems like a ...
8 years, 3 months ago (2012-09-07 11:44:03 UTC) #2
wjia(left Chromium)
Thanks! PTAL. https://chromiumcodereview.appspot.com/10918052/diff/7010/content/renderer/media/local_video_capture.cc File content/renderer/media/local_video_capture.cc (right): https://chromiumcodereview.appspot.com/10918052/diff/7010/content/renderer/media/local_video_capture.cc#newcode132 content/renderer/media/local_video_capture.cc:132: // Assume YV12 format. On 2012/09/07 11:44:03, ...
8 years, 3 months ago (2012-09-13 01:22:06 UTC) #3
scherkus (not reviewing)
https://chromiumcodereview.appspot.com/10918052/diff/7010/webkit/media/webmediaplayer_ms.cc File webkit/media/webmediaplayer_ms.cc (right): https://chromiumcodereview.appspot.com/10918052/diff/7010/webkit/media/webmediaplayer_ms.cc#newcode281 webkit/media/webmediaplayer_ms.cc:281: return buffered_; On 2012/09/13 01:22:07, wjia wrote: > On ...
8 years, 3 months ago (2012-09-13 10:22:43 UTC) #4
scherkus (not reviewing)
https://chromiumcodereview.appspot.com/10918052/diff/7010/webkit/media/video_frame_provider.h File webkit/media/video_frame_provider.h (right): https://chromiumcodereview.appspot.com/10918052/diff/7010/webkit/media/video_frame_provider.h#newcode21 webkit/media/video_frame_provider.h:21: : public base::RefCountedThreadSafe<VideoFrameProvider> { On 2012/09/13 01:22:07, wjia wrote: ...
8 years, 3 months ago (2012-09-13 10:25:23 UTC) #5
wjia(left Chromium)
Thanks! PTAL. https://chromiumcodereview.appspot.com/10918052/diff/7010/webkit/media/video_frame_provider.h File webkit/media/video_frame_provider.h (right): https://chromiumcodereview.appspot.com/10918052/diff/7010/webkit/media/video_frame_provider.h#newcode21 webkit/media/video_frame_provider.h:21: : public base::RefCountedThreadSafe<VideoFrameProvider> { On 2012/09/13 10:25:24, ...
8 years, 3 months ago (2012-09-19 03:22:06 UTC) #6
scherkus (not reviewing)
lgtm w/ nits we're likely going to have to iterate and fix a few more ...
8 years, 3 months ago (2012-09-20 19:27:00 UTC) #7
wjia(left Chromium)
Thanks! +piman@ for stamp on content/ +jamesr@ for stamp on webkit/support/ https://chromiumcodereview.appspot.com/10918052/diff/18001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): ...
8 years, 3 months ago (2012-09-21 19:47:27 UTC) #8
piman
One thing, the rest looks good. https://chromiumcodereview.appspot.com/10918052/diff/35001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/10918052/diff/35001/content/renderer/render_view_impl.cc#newcode2526 content/renderer/render_view_impl.cc:2526: EnsureMediaStreamImpl(); This looks ...
8 years, 3 months ago (2012-09-22 01:03:37 UTC) #9
wjia(left Chromium)
Thanks! PTAL. https://chromiumcodereview.appspot.com/10918052/diff/35001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/10918052/diff/35001/content/renderer/render_view_impl.cc#newcode2526 content/renderer/render_view_impl.cc:2526: EnsureMediaStreamImpl(); On 2012/09/22 01:03:37, piman wrote: > ...
8 years, 3 months ago (2012-09-22 17:04:42 UTC) #10
piman
lgtm
8 years, 3 months ago (2012-09-22 17:07:26 UTC) #11
jamesr
lgtm with one nit https://chromiumcodereview.appspot.com/10918052/diff/38007/webkit/support/test_media_stream_client.h File webkit/support/test_media_stream_client.h (right): https://chromiumcodereview.appspot.com/10918052/diff/38007/webkit/support/test_media_stream_client.h#newcode12 webkit/support/test_media_stream_client.h:12: #include "base/callback.h" comment in base/callback.h ...
8 years, 3 months ago (2012-09-24 18:07:43 UTC) #12
wjia(left Chromium)
8 years, 3 months ago (2012-09-25 01:13:05 UTC) #13
Thanks!

https://chromiumcodereview.appspot.com/10918052/diff/38007/webkit/support/tes...
File webkit/support/test_media_stream_client.h (right):

https://chromiumcodereview.appspot.com/10918052/diff/38007/webkit/support/tes...
webkit/support/test_media_stream_client.h:12: #include "base/callback.h"
On 2012/09/24 18:07:44, jamesr wrote:
> comment in base/callback.h says this:
> 
> // NOTE: Header files that do not require the full definition of Callback or
> // Closure should #include "base/callback_forward.h" instead of this file.

Done.

Powered by Google App Engine
This is Rietveld 408576698