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

Issue 2516813002: Enable pinning stream output routing for webapp request on ChromeOS (Closed)

Created:
4 years, 1 month ago by Qiang(Joe) Xu
Modified:
3 years, 10 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable pinning stream output routing for webapp request on ChromeOS This CL fixes two bugs. For crbug.com/666202, support pinning stream for output, the behavior reverts to default if pin_device_ is NO_DEVICE. For crbug.com/658048, using "Headset/Front Mic" input to represent internal_mic and 3.5mm micjack, and "HP/Speaker" output to represent internal_speaker and 3.5mm headphone. The "/" on the webpage means routing then depends on chromeos system UI for that label. BUG=666202 BUG=658048 TEST=manual test and expect the results: "The drop down for audio input and output from a web page should show a list of available devices plus "default". Choosing one from a web page will route only that page's audio to/from the selected device." Except "HP/Speaker" and "Headset/Front Mic" then needs to depend on chromeos system UI selecting. Test relies on the chrome://flags #enumerate-audio-devices enabled. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix compiler error #

Patch Set 3 : new labels instead of Internal #

Total comments: 7

Patch Set 4 : comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -32 lines) Patch
M media/audio/cras/audio_manager_cras.h View 2 chunks +5 lines, -1 line 0 comments Download
M media/audio/cras/audio_manager_cras.cc View 1 2 3 6 chunks +54 lines, -10 lines 0 comments Download
M media/audio/cras/cras_input.h View 1 chunk +0 lines, -3 lines 0 comments Download
M media/audio/cras/cras_input.cc View 3 chunks +1 line, -10 lines 0 comments Download
M media/audio/cras/cras_unified.h View 2 chunks +6 lines, -1 line 0 comments Download
M media/audio/cras/cras_unified.cc View 4 chunks +13 lines, -4 lines 2 comments Download
M media/audio/cras/cras_unified_unittest.cc View 1 3 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (14 generated)
Qiang(Joe) Xu
Hi all, ptal, thanks! dgreid@, hychao@ for bugs related code changes. tommi@ for owner review. ...
4 years, 1 month ago (2016-11-19 00:41:44 UTC) #5
Qiang(Joe) Xu
Hi all, the new change is to replace "Internal" with "HP/Speaker" and "Headset/Front Mic" based ...
4 years, 1 month ago (2016-11-21 22:39:15 UTC) #16
Qiang(Joe) Xu
On 2016/11/21 22:39:15, Qiang (Joe) Xu wrote: > Hi all, the new change is to ...
4 years ago (2016-11-28 17:52:53 UTC) #17
tommi (sloooow) - chröme
I'll be happy to rubberstamp once reviewed by someone more familiar with the cras code.
4 years ago (2016-11-29 12:28:30 UTC) #18
dgreid
https://codereview.chromium.org/2516813002/diff/40001/media/audio/cras/audio_manager_cras.cc File media/audio/cras/audio_manager_cras.cc (right): https://codereview.chromium.org/2516813002/diff/40001/media/audio/cras/audio_manager_cras.cc#newcode177 media/audio/cras/audio_manager_cras.cc:177: else if (device.type == chromeos::AUDIO_TYPE_INTERNAL_SPEAKER) How does this work ...
4 years ago (2016-11-29 19:38:44 UTC) #19
Qiang(Joe) Xu
Hi Dylan, here is my reply and some puzzles, thanks! https://codereview.chromium.org/2516813002/diff/40001/media/audio/cras/audio_manager_cras.cc File media/audio/cras/audio_manager_cras.cc (right): https://codereview.chromium.org/2516813002/diff/40001/media/audio/cras/audio_manager_cras.cc#newcode177 ...
4 years ago (2016-11-29 21:57:48 UTC) #20
dgreid
https://codereview.chromium.org/2516813002/diff/40001/media/audio/cras/audio_manager_cras.cc File media/audio/cras/audio_manager_cras.cc (right): https://codereview.chromium.org/2516813002/diff/40001/media/audio/cras/audio_manager_cras.cc#newcode177 media/audio/cras/audio_manager_cras.cc:177: else if (device.type == chromeos::AUDIO_TYPE_INTERNAL_SPEAKER) On 2016/11/29 21:57:47, Qiang ...
4 years ago (2016-11-29 23:23:18 UTC) #21
Qiang(Joe) Xu
Hi all, I added a comment based on suggestion. Please see how it sounds to ...
4 years ago (2016-11-30 01:01:17 UTC) #22
dgreid
https://codereview.chromium.org/2516813002/diff/60001/media/audio/cras/cras_unified.cc File media/audio/cras/cras_unified.cc (right): https://codereview.chromium.org/2516813002/diff/60001/media/audio/cras/cras_unified.cc#newcode209 media/audio/cras/cras_unified.cc:209: LOG(WARNING) << "Failed to add the stream."; How does ...
4 years ago (2016-11-30 01:45:08 UTC) #23
Qiang(Joe) Xu
Hi Dylan, here is my reply, thanks! https://codereview.chromium.org/2516813002/diff/60001/media/audio/cras/cras_unified.cc File media/audio/cras/cras_unified.cc (right): https://codereview.chromium.org/2516813002/diff/60001/media/audio/cras/cras_unified.cc#newcode209 media/audio/cras/cras_unified.cc:209: LOG(WARNING) << ...
4 years ago (2016-11-30 02:08:45 UTC) #24
dgreid
Thanks makes sense, thanks! This change lgtm, can you test what happens when you unplug ...
4 years ago (2016-11-30 02:14:29 UTC) #25
Qiang(Joe) Xu
On 2016/11/30 02:14:29, dgreid wrote: > Thanks makes sense, thanks! > > This change lgtm, ...
4 years ago (2016-11-30 04:27:04 UTC) #26
hychao
lgtm
4 years ago (2016-12-02 03:03:13 UTC) #27
Qiang(Joe) Xu
3 years, 10 months ago (2017-01-27 02:34:51 UTC) #28
Message was sent while issue was closed.
On 2016/12/02 03:03:13, hychao wrote:
> lgtm

Since https://codereview.chromium.org/2651073004/ is landed, I will close this
one. If audio label for internal_speaker/headphone, internal_mic/micjack is what
we want to do, I will open a new code review. Thanks!

Powered by Google App Engine
This is Rietveld 408576698