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

Issue 11369171: Add chromium support for MediaStreamAudioDestinationNode (Closed)

Created:
8 years, 1 month ago by Chris Rogers
Modified:
7 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Add chromium support for MediaStreamAudioDestinationNode We add smarts into MediaStreamDependencyFactory::CreateNativeLocalMediaStream() to handle MediaStreams originating from WebAudio. Please see companion WebKit patches: https://bugs.webkit.org/show_bug.cgi?id=101815 https://bugs.webkit.org/show_bug.cgi?id=106053 BUG=none TEST=manual test http://www.corp.google.com/~henrika/WebAudio/MediaStreamAudioDestinationNode.html Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177330

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -43 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory.cc View 1 2 3 4 5 6 7 8 9 1 chunk +61 lines, -19 lines 3 comments Download
M content/renderer/media/media_stream_impl.cc View 1 2 3 4 5 6 7 8 9 5 chunks +29 lines, -20 lines 0 comments Download
A content/renderer/media/webaudio_capturer_source.h View 1 2 3 4 5 6 1 chunk +82 lines, -0 lines 0 comments Download
A content/renderer/media/webaudio_capturer_source.cc View 1 2 3 4 5 6 7 1 chunk +102 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_capturer.cc View 1 2 3 4 5 6 7 8 9 3 chunks +30 lines, -3 lines 0 comments Download
M media/base/audio_capturer_source.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 50 (0 generated)
Chris Rogers
We have sound! Early test indicates we can transmit from a WebAudio node to a ...
8 years, 1 month ago (2012-11-10 01:14:46 UTC) #1
henrika (OOO until Aug 14)
Great work! Chis, would it be possible to provide some more details so I can ...
8 years, 1 month ago (2012-11-12 09:24:55 UTC) #2
tommi (sloooow) - chröme
Great! How far away are we from landing? https://codereview.chromium.org/11369171/diff/1/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/11369171/diff/1/content/renderer/media/rtc_peer_connection_handler.cc#newcode322 content/renderer/media/rtc_peer_connection_handler.cc:322: webaudio_capturer_source_ ...
8 years, 1 month ago (2012-11-12 09:46:18 UTC) #3
henrika (OOO until Aug 14)
Chris, sorry if I don't know the details here. How is this work related to ...
8 years, 1 month ago (2012-11-12 10:23:54 UTC) #4
perkj_chrome
http://codereview.chromium.org/11369171/diff/1/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): http://codereview.chromium.org/11369171/diff/1/content/renderer/media/rtc_peer_connection_handler.cc#newcode315 content/renderer/media/rtc_peer_connection_handler.cc:315: if (audioComponents.size() > 0) { This seems to be ...
8 years, 1 month ago (2012-11-12 10:35:11 UTC) #5
henrika (OOO until Aug 14)
To add some more flesh to my previous question. What if we now do [modified_media_stream].connect(context.destination)? ...
8 years, 1 month ago (2012-11-12 17:00:30 UTC) #6
Chris Rogers
On 2012/11/12 09:24:55, henrika wrote: > Great work! > > Chis, would it be possible ...
8 years, 1 month ago (2012-11-12 23:18:15 UTC) #7
Chris Rogers
On 2012/11/12 10:35:11, perkj wrote: > http://codereview.chromium.org/11369171/diff/1/content/renderer/media/rtc_peer_connection_handler.cc > File content/renderer/media/rtc_peer_connection_handler.cc (right): > > http://codereview.chromium.org/11369171/diff/1/content/renderer/media/rtc_peer_connection_handler.cc#newcode315 > ...
8 years, 1 month ago (2012-11-12 23:23:06 UTC) #8
henrika (OOO until Aug 14)
Thanks for the links Chris. Is the CL patched now so it matches what Shijing ...
8 years, 1 month ago (2012-11-13 14:14:57 UTC) #9
Chris Rogers
This latest CL is an iteration based on TommiW's improved WebKit-side architecture using WebAudioDestinationConsumer: http://trac.webkit.org/changeset/135985 ...
8 years ago (2012-12-14 21:43:24 UTC) #10
Chris Rogers
+tommyw
8 years ago (2012-12-14 21:43:58 UTC) #11
henrika (OOO until Aug 14)
Chris, I have not checked this CL in a while and might have missed some ...
8 years ago (2012-12-15 16:32:49 UTC) #12
henrika (OOO until Aug 14)
I think this CL must be rebased to match top of the tree. https://codereview.chromium.org/11369171/diff/9001/content/renderer/media/webrtc_audio_device_impl.h File ...
8 years ago (2012-12-15 16:43:45 UTC) #13
Chris Rogers
On 2012/12/15 16:32:49, henrika wrote: > Chris, I have not checked this CL in a ...
8 years ago (2012-12-15 19:45:23 UTC) #14
henrika (OOO until Aug 14)
Hence, #3 here: https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/webrtc-integration.html is not covered by this CL yet. Correct?
8 years ago (2012-12-17 08:37:16 UTC) #15
perkj_chrome
Awsome - I think this is the right approach. I can't review the audio specifics ...
8 years ago (2012-12-17 10:59:20 UTC) #16
perkj_chrome
https://codereview.chromium.org/11369171/diff/9001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): https://codereview.chromium.org/11369171/diff/9001/content/renderer/media/media_stream_dependency_factory.cc#newcode284 content/renderer/media/media_stream_dependency_factory.cc:284: scoped_refptr<webrtc::LocalAudioTrackInterface> audio_track( line 284 to 287 must be done ...
8 years ago (2012-12-17 15:38:23 UTC) #17
henrika (OOO until Aug 14)
Chris, I have applied the patch on Windows and also did the changes that Per ...
8 years ago (2012-12-17 16:04:01 UTC) #18
henrika (OOO until Aug 14)
One more comment. When you rebase and try latest you will hit warnings in WebRtcAudioCapturer ...
8 years ago (2012-12-17 16:13:08 UTC) #19
henrika (OOO until Aug 14)
I assume that you will: - Rebase - Do changes as Per proposes. - Clean ...
8 years ago (2012-12-17 16:14:41 UTC) #20
no longer working on chromium
Hi Chris, I am afraid I can't help much for this CL since I will ...
8 years ago (2012-12-17 22:17:58 UTC) #21
henrika (OOO until Aug 14)
https://codereview.chromium.org/11369171/diff/9001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): https://codereview.chromium.org/11369171/diff/9001/content/renderer/media/media_stream_dependency_factory.cc#newcode254 content/renderer/media/media_stream_dependency_factory.cc:254: WebRtcAudioCapturer* capturer = GetWebRtcAudioDevice()->capturer(); Note that this guy can ...
8 years ago (2012-12-18 12:23:02 UTC) #22
henrika (OOO until Aug 14)
https://codereview.chromium.org/11369171/diff/9001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): https://codereview.chromium.org/11369171/diff/9001/content/renderer/media/media_stream_dependency_factory.cc#newcode284 content/renderer/media/media_stream_dependency_factory.cc:284: scoped_refptr<webrtc::LocalAudioTrackInterface> audio_track( I tried this but it did not ...
8 years ago (2012-12-18 13:35:15 UTC) #23
henrika (OOO until Aug 14)
I am now able to do MediaStreamDestination -> PC -> VoE -> PC -> render ...
8 years ago (2012-12-18 13:41:09 UTC) #24
henrika (OOO until Aug 14)
What's next? - I will try to force usage of Opus. Chris & Per: I ...
8 years ago (2012-12-18 13:43:49 UTC) #25
perkj_chrome
https://codereview.chromium.org/11369171/diff/9001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): https://codereview.chromium.org/11369171/diff/9001/content/renderer/media/media_stream_dependency_factory.cc#newcode284 content/renderer/media/media_stream_dependency_factory.cc:284: scoped_refptr<webrtc::LocalAudioTrackInterface> audio_track( On 2012/12/18 13:35:15, henrika wrote: > I ...
8 years ago (2012-12-18 14:09:04 UTC) #26
henrika (OOO until Aug 14)
Forced Opus: function transform(sdp) { // Remove all other codecs (not the video codecs though). ...
8 years ago (2012-12-18 14:09:53 UTC) #27
Chris Rogers
Hi Henrik, thanks for digging in a little bit. I've also been wrestling with this ...
8 years ago (2012-12-19 02:23:57 UTC) #28
henrika (OOO until Aug 14)
Chris, I have done a first test on Windows using your new script and unfortunately ...
8 years ago (2012-12-19 10:01:53 UTC) #29
henrika (OOO until Aug 14)
* I think the critical difference between my version (which still requires getUserMedia()) and yours ...
8 years ago (2012-12-19 10:21:38 UTC) #30
henrika (OOO until Aug 14)
Chris, to further illustrate my point, I have sent you two files: 1) A modified ...
8 years ago (2012-12-19 13:36:48 UTC) #31
henrika (OOO until Aug 14)
Chris, I've done more work today and will upload the file for you (see e.mail). ...
8 years ago (2012-12-20 15:09:24 UTC) #32
henrika (OOO until Aug 14)
Work continued here: https://codereview.chromium.org/11669004
8 years ago (2012-12-21 12:01:44 UTC) #33
Chris Rogers
Building on work from Henrik's last iteration: WebAudioCapturerSource constructor now takes WebRtcAudioCapturer, so that it ...
7 years, 11 months ago (2013-01-04 01:57:06 UTC) #34
Chris Rogers
FYI: setFormat() support has now landed in WebKit: http://trac.webkit.org/changeset/138895
7 years, 11 months ago (2013-01-05 22:50:51 UTC) #35
henrika (OOO until Aug 14)
Chris, just added a minor comment since I was not able to build today. Do ...
7 years, 11 months ago (2013-01-07 10:14:19 UTC) #36
henrika (OOO until Aug 14)
https://codereview.chromium.org/11369171/diff/39001/content/renderer/media/webrtc_audio_capturer.cc File content/renderer/media/webrtc_audio_capturer.cc (right): https://codereview.chromium.org/11369171/diff/39001/content/renderer/media/webrtc_audio_capturer.cc#newcode140 content/renderer/media/webrtc_audio_capturer.cc:140: 440); // requires knowledge about WebRTC @ 10ms Chris, ...
7 years, 11 months ago (2013-01-07 10:14:27 UTC) #37
Chris Rogers
On 2013/01/07 10:14:19, henrika wrote: > Chris, > > just added a minor comment since ...
7 years, 11 months ago (2013-01-07 20:57:30 UTC) #38
Chris Rogers
On 2013/01/07 10:14:27, henrika wrote: > https://codereview.chromium.org/11369171/diff/39001/content/renderer/media/webrtc_audio_capturer.cc > File content/renderer/media/webrtc_audio_capturer.cc (right): > > https://codereview.chromium.org/11369171/diff/39001/content/renderer/media/webrtc_audio_capturer.cc#newcode140 > ...
7 years, 11 months ago (2013-01-07 20:58:48 UTC) #39
henrika (OOO until Aug 14)
Thanks Chris, it works for me now as well but I have some more comments. ...
7 years, 11 months ago (2013-01-08 09:52:16 UTC) #40
henrika (OOO until Aug 14)
https://codereview.chromium.org/11369171/diff/39001/content/renderer/media/webrtc_audio_capturer.cc File content/renderer/media/webrtc_audio_capturer.cc (right): https://codereview.chromium.org/11369171/diff/39001/content/renderer/media/webrtc_audio_capturer.cc#newcode125 content/renderer/media/webrtc_audio_capturer.cc:125: // henrika: Guess we could clean up here now. ...
7 years, 11 months ago (2013-01-08 09:52:27 UTC) #41
Chris Rogers
Hi Henrik PTAL, I've tidied this up a bit and am ready for a more ...
7 years, 11 months ago (2013-01-14 23:12:13 UTC) #42
henrika (OOO until Aug 14)
LGTM from my side. Note that I am not an owner here. Chris, given your ...
7 years, 11 months ago (2013-01-16 17:25:15 UTC) #43
Chris Rogers
https://codereview.chromium.org/11369171/diff/75001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): https://codereview.chromium.org/11369171/diff/75001/content/renderer/media/media_stream_dependency_factory.cc#newcode267 content/renderer/media/media_stream_dependency_factory.cc:267: scoped_refptr<webrtc::LocalAudioTrackInterface> audio_track( On 2013/01/16 17:25:15, henrika wrote: > This ...
7 years, 11 months ago (2013-01-16 18:38:54 UTC) #44
DaleCurtis
media/ lgtm
7 years, 11 months ago (2013-01-16 21:39:29 UTC) #45
Chris Rogers
+jam: content OWNERS
7 years, 11 months ago (2013-01-16 21:43:27 UTC) #46
jam
On 2013/01/16 21:43:27, Chris Rogers wrote: > +jam: content OWNERS gypi lgtm
7 years, 11 months ago (2013-01-17 00:46:31 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/crogers@google.com/11369171/75001
7 years, 11 months ago (2013-01-17 00:52:27 UTC) #48
commit-bot: I haz the power
Change committed as 177330
7 years, 11 months ago (2013-01-17 03:32:31 UTC) #49
henrika (OOO until Aug 14)
7 years, 11 months ago (2013-01-17 08:13:09 UTC) #50
Message was sent while issue was closed.
https://codereview.chromium.org/11369171/diff/75001/content/renderer/media/me...
File content/renderer/media/media_stream_dependency_factory.cc (right):

https://codereview.chromium.org/11369171/diff/75001/content/renderer/media/me...
content/renderer/media/media_stream_dependency_factory.cc:267:
scoped_refptr<webrtc::LocalAudioTrackInterface> audio_track(
I will check with Per and perhaps add more comments here when I merge our CLs. I
have been involve in too many CLs and reviews lately it seems like since I even
forget what I've written before ;-)

Powered by Google App Engine
This is Rietveld 408576698