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

Issue 131763002: Adds MediaStreamSource, MediaStreamAudioSource and MediaStreamVideoCaptureDeviceSource (Closed)

Created:
6 years, 11 months ago by perkj_chrome
Modified:
6 years, 10 months ago
Visibility:
Public.

Description

This cl rename MediaStreamSourceExtraData to MediaStreamSource. This class is used as a common base class for MediaStreamAudioSource and MediaStreamVideoSource. Further more it adds a specialization MediaStreamVideoSource called MediaStreamVideoCaptureDeviceSource. This is used for local video source such that can be created used GetUserMedia. The cl hooks up the above classes to MediaStreamImpl to make sure they are used when gUM i used from JS. BUG=334241 TBR jam for content_renderer.gypi TBR=jam Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247937

Patch Set 1 #

Patch Set 2 : Now works. But not the all unit tests. #

Patch Set 3 : Rebased. #

Total comments: 4

Patch Set 4 : Fixed MediaStreamImpl unittests. #

Patch Set 5 : Move creation of webrtc track to MediaStreamVideoSource::AddTrack. #

Patch Set 6 : #

Patch Set 7 : Fix more unittests. #

Patch Set 8 : #

Patch Set 9 : Added MediaStreamAudioSource. #

Total comments: 4

Patch Set 10 : Rebased on Ronghuas patch and refactored a bit. #

Patch Set 11 : Removed unused file. #

Total comments: 58

Patch Set 12 : Addressed Ronghuas and Jois comments. #

Total comments: 45

Patch Set 13 : Addressed xians comments. #

Total comments: 1

Patch Set 14 : Rebased on xians cl. #

Patch Set 15 : #

Total comments: 27

Patch Set 16 : Addressed review comments from xians. #

Total comments: 14

Patch Set 17 : Addressed review comments. #

Total comments: 2

Patch Set 18 : Fix CreatePeerConnectionFactory. #

Patch Set 19 : Move initialization of the audio source object to MediaStreamAudioSource::AddTrack and check result. #

Total comments: 29

Patch Set 20 : Addressed Jois comments #

Patch Set 21 : Rebased #

Patch Set 22 : And include logging.h #

Patch Set 23 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+948 lines, -854 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +6 lines, -2 lines 0 comments Download
A content/renderer/media/media_stream_audio_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +67 lines, -0 lines 0 comments Download
A content/renderer/media/media_stream_audio_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +50 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_center.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +14 lines, -21 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 17 chunks +151 lines, -291 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +5 lines, -33 lines 0 comments Download
M content/renderer/media/media_stream_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +61 lines, -21 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 12 chunks +215 lines, -176 lines 0 comments Download
M content/renderer/media/media_stream_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +3 lines, -20 lines 0 comments Download
A content/renderer/media/media_stream_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +80 lines, -0 lines 0 comments Download
A content/renderer/media/media_stream_source.cc View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -0 lines 0 comments Download
D content/renderer/media/media_stream_source_extra_data.h View 1 chunk +0 lines, -92 lines 0 comments Download
M content/renderer/media/media_stream_source_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -42 lines 0 comments Download
M content/renderer/media/media_stream_source_observer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -63 lines 0 comments Download
A content/renderer/media/media_stream_video_capturer_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +40 lines, -0 lines 0 comments Download
A content/renderer/media/media_stream_video_capturer_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +36 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +34 lines, -13 lines 0 comments Download
M content/renderer/media/media_stream_video_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +67 lines, -9 lines 0 comments Download
M content/renderer/media/media_stream_video_source_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +79 lines, -9 lines 0 comments Download
M content/renderer/media/mock_media_stream_dependency_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +2 lines, -9 lines 0 comments Download
M content/renderer/media/mock_media_stream_dependency_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +5 lines, -40 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/video_destination_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/video_source_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 27 (0 generated)
perkj_chrome
Hej This is what I have been hacking at the last couple of days. No ...
6 years, 11 months ago (2014-01-09 14:03:24 UTC) #1
Ronghua Wu (Left Chromium)
Few thoughts. https://codereview.chromium.org/131763002/diff/70001/content/renderer/media/media_stream_video_capture_device_source.cc File content/renderer/media/media_stream_video_capture_device_source.cc (right): https://codereview.chromium.org/131763002/diff/70001/content/renderer/media/media_stream_video_capture_device_source.cc#newcode28 content/renderer/media/media_stream_video_capture_device_source.cc:28: dependency_factory->CreateVideoCapturer(device_info()); Instead of reusing the RtcVideoCapturer, I ...
6 years, 11 months ago (2014-01-10 20:01:08 UTC) #2
perkj_chrome
https://codereview.chromium.org/131763002/diff/70001/content/renderer/media/media_stream_video_capture_device_source.cc File content/renderer/media/media_stream_video_capture_device_source.cc (right): https://codereview.chromium.org/131763002/diff/70001/content/renderer/media/media_stream_video_capture_device_source.cc#newcode28 content/renderer/media/media_stream_video_capture_device_source.cc:28: dependency_factory->CreateVideoCapturer(device_info()); On 2014/01/10 20:01:08, Ronghua Wu wrote: > Instead ...
6 years, 11 months ago (2014-01-12 19:34:38 UTC) #3
perkj_chrome
Adding hclam since he also seem to work on a video source implementation. This seem ...
6 years, 11 months ago (2014-01-13 16:56:38 UTC) #4
Alpha Left Google
It looks like this is moving to the right direction. I have a suggestion about ...
6 years, 11 months ago (2014-01-15 01:57:47 UTC) #5
perkj_chrome
Hej I think this is ready for review before I grow it even larger. The ...
6 years, 11 months ago (2014-01-16 15:48:08 UTC) #6
Alpha Left Google
On 2014/01/16 15:48:08, perkj wrote: > Hej > I think this is ready for review ...
6 years, 11 months ago (2014-01-16 22:38:36 UTC) #7
Alpha Left Google
On 2014/01/16 22:38:36, Alpha wrote: > On 2014/01/16 15:48:08, perkj wrote: > > Hej > ...
6 years, 11 months ago (2014-01-16 22:45:18 UTC) #8
Ronghua Wu (Left Chromium)
https://codereview.chromium.org/131763002/diff/380001/content/renderer/media/media_stream_audio_source.h File content/renderer/media/media_stream_audio_source.h (right): https://codereview.chromium.org/131763002/diff/380001/content/renderer/media/media_stream_audio_source.h#newcode48 content/renderer/media/media_stream_audio_source.h:48: // TODO(hclam): This should be merged with |audio_source_| such ...
6 years, 11 months ago (2014-01-16 23:02:36 UTC) #9
Jói
The overall approach makes sense to me. See comments below. https://codereview.chromium.org/131763002/diff/380001/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): https://codereview.chromium.org/131763002/diff/380001/content/renderer/media/media_stream_impl.cc#newcode869 ...
6 years, 11 months ago (2014-01-17 08:57:07 UTC) #10
perkj_chrome
Thanks PTAL https://codereview.chromium.org/131763002/diff/380001/content/renderer/media/media_stream_audio_source.h File content/renderer/media/media_stream_audio_source.h (right): https://codereview.chromium.org/131763002/diff/380001/content/renderer/media/media_stream_audio_source.h#newcode48 content/renderer/media/media_stream_audio_source.h:48: // TODO(hclam): This should be merged with ...
6 years, 11 months ago (2014-01-17 13:19:45 UTC) #11
no longer working on chromium
This kind of big CL is not ideal for Friday afternoon, I got tired after ...
6 years, 11 months ago (2014-01-17 14:51:50 UTC) #12
perkj_chrome
PTAL https://codereview.chromium.org/131763002/diff/530001/content/content_renderer.gypi File content/content_renderer.gypi (right): https://codereview.chromium.org/131763002/diff/530001/content/content_renderer.gypi#newcode605 content/content_renderer.gypi:605: 'renderer/media/capturer_media_stream_video_source.h', On 2014/01/17 14:51:51, xians1 wrote: > shouldn't ...
6 years, 11 months ago (2014-01-19 15:52:38 UTC) #13
no longer working on chromium
Almost there. https://codereview.chromium.org/131763002/diff/530001/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): https://codereview.chromium.org/131763002/diff/530001/content/renderer/media/media_stream_impl.cc#newcode888 content/renderer/media/media_stream_impl.cc:888: request_failed_ = true; On 2014/01/19 15:52:39, perkj ...
6 years, 11 months ago (2014-01-20 13:36:19 UTC) #14
perkj_chrome
PTAL https://codereview.chromium.org/131763002/diff/530001/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): https://codereview.chromium.org/131763002/diff/530001/content/renderer/media/media_stream_impl.cc#newcode888 content/renderer/media/media_stream_impl.cc:888: request_failed_ = true; On 2014/01/20 13:36:20, xians1 wrote: ...
6 years, 11 months ago (2014-01-20 16:12:05 UTC) #15
no longer working on chromium
Great work. lgtm with one nit and one question. https://chromiumcodereview.appspot.com/131763002/diff/530001/content/renderer/media/media_stream_impl.cc File content/renderer/media/media_stream_impl.cc (right): https://chromiumcodereview.appspot.com/131763002/diff/530001/content/renderer/media/media_stream_impl.cc#newcode888 content/renderer/media/media_stream_impl.cc:888: ...
6 years, 11 months ago (2014-01-21 09:25:29 UTC) #16
Ronghua Wu (Left Chromium)
Good job. I have few more comments. But feel free to commit if you think ...
6 years, 11 months ago (2014-01-22 01:44:03 UTC) #17
perkj_chrome
Can you please PTAL since the requested change of introducing a getter for pc_factory() changed ...
6 years, 11 months ago (2014-01-22 16:56:37 UTC) #18
Ronghua Wu (Left Chromium)
still LG, but please consider the comment. https://codereview.chromium.org/131763002/diff/1070001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): https://codereview.chromium.org/131763002/diff/1070001/content/renderer/media/media_stream_dependency_factory.cc#newcode457 content/renderer/media/media_stream_dependency_factory.cc:457: CreatePeerConnectionFactory(); lazy ...
6 years, 11 months ago (2014-01-23 00:42:42 UTC) #19
perkj_chrome
I found the reason why TabCapture.ApiTestsAudio failed. It expected a failure if constraints parsing of ...
6 years, 11 months ago (2014-01-27 18:47:16 UTC) #20
Jói
I just have a few nits. LGTM with those resolved. Big change! https://codereview.chromium.org/131763002/diff/1150001/content/renderer/media/media_stream_audio_source.cc File content/renderer/media/media_stream_audio_source.cc ...
6 years, 11 months ago (2014-01-27 22:14:56 UTC) #21
perkj_chrome
Thanks https://codereview.chromium.org/131763002/diff/1150001/content/renderer/media/media_stream_audio_source.cc File content/renderer/media/media_stream_audio_source.cc (right): https://codereview.chromium.org/131763002/diff/1150001/content/renderer/media/media_stream_audio_source.cc#newcode41 content/renderer/media/media_stream_audio_source.cc:41: On 2014/01/27 22:14:57, Jói wrote: > nit: unnecessary ...
6 years, 11 months ago (2014-01-28 08:31:42 UTC) #22
no longer working on chromium
still lgtm with a nit. https://codereview.chromium.org/131763002/diff/1150001/content/renderer/media/media_stream_audio_source.h File content/renderer/media/media_stream_audio_source.h (right): https://codereview.chromium.org/131763002/diff/1150001/content/renderer/media/media_stream_audio_source.h#newcode60 content/renderer/media/media_stream_audio_source.h:60: MediaStreamDependencyFactory* factory_; Could you ...
6 years, 10 months ago (2014-01-28 12:09:21 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/131763002/1260001
6 years, 10 months ago (2014-01-30 08:56:52 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 10 months ago (2014-01-30 09:39:37 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/perkj@chromium.org/131763002/1260001
6 years, 10 months ago (2014-01-30 09:46:27 UTC) #26
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 13:28:32 UTC) #27
Message was sent while issue was closed.
Change committed as 247937

Powered by Google App Engine
This is Rietveld 408576698