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

Issue 23731007: Implicit audio output device selection for getUserMedia. (Closed)

Created:
7 years, 3 months ago by tommi (sloooow) - chröme
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, jam, miu+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Implicit audio output device selection for getUserMedia. When a non-default input device is selected, do a best-effort selection of a matching output device. This is used to switch output of media stream audio tracks to the output device that matches the currently open capture device (microphone). An typical example is to support switching to USB headsets when in a audio/video call. This does not affect the audio output of non-webrtc related audio elements and only happens when there's exactly 1 active audio capture device in the page. BUG=276894 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222187

Patch Set 1 #

Total comments: 28

Patch Set 2 : Address comments #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -79 lines) Patch
M content/browser/renderer_host/media/audio_input_device_manager.cc View 1 3 chunks +26 lines, -6 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_device_manager_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 5 chunks +14 lines, -7 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/common/media/media_stream_messages.h View 1 chunk +7 lines, -2 lines 0 comments Download
M content/common/media/media_stream_options.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/media/media_stream_options.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M content/public/common/media_stream_request.h View 2 chunks +46 lines, -12 lines 0 comments Download
M content/public/common/media_stream_request.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_dependency_factory_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_impl.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_impl.cc View 1 5 chunks +74 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_unittest.cc View 1 2 4 chunks +10 lines, -8 lines 0 comments Download
M content/renderer/media/webrtc_audio_renderer.h View 4 chunks +10 lines, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_renderer.cc View 1 6 chunks +19 lines, -11 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.h View 3 chunks +13 lines, -1 line 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.cc View 4 chunks +11 lines, -11 lines 0 comments Download
M content/test/webrtc_audio_device_test.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M content/test/webrtc_audio_device_test.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
tommi (sloooow) - chröme
7 years, 3 months ago (2013-09-06 14:08:54 UTC) #1
Jói
https://codereview.chromium.org/23731007/diff/1/content/browser/renderer_host/media/audio_input_device_manager.cc File content/browser/renderer_host/media/audio_input_device_manager.cc (right): https://codereview.chromium.org/23731007/diff/1/content/browser/renderer_host/media/audio_input_device_manager.cc#newcode38 content/browser/renderer_host/media/audio_input_device_manager.cc:38: 2048, false); Why 2048? https://codereview.chromium.org/23731007/diff/1/content/browser/renderer_host/media/audio_renderer_host.cc File content/browser/renderer_host/media/audio_renderer_host.cc (right): https://codereview.chromium.org/23731007/diff/1/content/browser/renderer_host/media/audio_renderer_host.cc#newcode307 ...
7 years, 3 months ago (2013-09-06 14:49:26 UTC) #2
no longer working on chromium
https://codereview.chromium.org/23731007/diff/1/content/browser/renderer_host/media/audio_input_device_manager.cc File content/browser/renderer_host/media/audio_input_device_manager.cc (right): https://codereview.chromium.org/23731007/diff/1/content/browser/renderer_host/media/audio_input_device_manager.cc#newcode38 content/browser/renderer_host/media/audio_input_device_manager.cc:38: 2048, false); nit, use 0 as indicating the value ...
7 years, 3 months ago (2013-09-06 15:17:36 UTC) #3
tommi (sloooow) - chröme
Address comments
7 years, 3 months ago (2013-09-06 16:55:51 UTC) #4
tommi (sloooow) - chröme
Addressed comments and had to add a couple of files: webrtc_audio_device_test.* https://codereview.chromium.org/23731007/diff/1/content/browser/renderer_host/media/audio_input_device_manager.cc File content/browser/renderer_host/media/audio_input_device_manager.cc (right): ...
7 years, 3 months ago (2013-09-06 16:56:54 UTC) #5
Jói
LGTM
7 years, 3 months ago (2013-09-06 18:03:45 UTC) #6
no longer working on chromium
On 2013/09/06 18:03:45, Jói wrote: > LGTM lgtm
7 years, 3 months ago (2013-09-06 18:48:11 UTC) #7
tommi (sloooow) - chröme
Thanks for the super quick turnaround! On Fri, Sep 6, 2013 at 8:48 PM, <xians@chromium.org> ...
7 years, 3 months ago (2013-09-06 19:04:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/23731007/23001
7 years, 3 months ago (2013-09-06 19:04:21 UTC) #9
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=24196
7 years, 3 months ago (2013-09-06 19:17:39 UTC) #10
tommi (sloooow) - chröme
Justin - can you please take a look at: content/common/media/media_stream_messages.h
7 years, 3 months ago (2013-09-06 19:25:21 UTC) #11
tommi (sloooow) - chröme
On 2013/09/06 19:25:21, tommi wrote: > Justin - can you please take a look at: ...
7 years, 3 months ago (2013-09-06 19:27:10 UTC) #12
tommi (sloooow) - chröme
ping for media_**stream_messages.h (sorry for pushing but if possible, it would be good to land ...
7 years, 3 months ago (2013-09-09 17:23:50 UTC) #13
jschuh
it looks like the new fields are used on the browser side only for matching ...
7 years, 3 months ago (2013-09-09 17:28:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/23731007/23001
7 years, 3 months ago (2013-09-09 17:34:55 UTC) #15
commit-bot: I haz the power
Failed to apply patch for content/renderer/media/webrtc_audio_device_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-09 17:35:07 UTC) #16
tommi (sloooow) - chröme
Rebase
7 years, 3 months ago (2013-09-09 18:25:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/23731007/38001
7 years, 3 months ago (2013-09-09 18:28:21 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=195142
7 years, 3 months ago (2013-09-09 20:33:30 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/23731007/38001
7 years, 3 months ago (2013-09-09 20:50:40 UTC) #20
commit-bot: I haz the power
7 years, 3 months ago (2013-09-10 02:18:29 UTC) #21
Message was sent while issue was closed.
Change committed as 222187

Powered by Google App Engine
This is Rietveld 408576698