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

Issue 2144333002: MuteSource Audio During Full Screen Cast (Closed)

Created:
4 years, 5 months ago by qiangchen
Modified:
4 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MuteSource Audio During Full Screen Cast Previously, when casting a chrome tab, the source audio is automatically muted; however, casting the full screen, the system audio is still audible. This CL makes the behavior consistent. P.S. But the technique is different for muting a tab and muting system audio. 1. For muting tab, we divert the audio stream from speaker to WebContentsAudioInputStream. 2. For muting system audio, we call the OS API to do so, which is just as if the user click the "mute" button on the task bar. Visible difference is that during capturing, the user is not able to unmute tab audio on the capture side, but nothing can prevent the end user to unmute system audio. BUG=629561 NOPRESUBMIT=true Committed: https://crrev.com/a282a4569fe0786fe2bec8c9d0bfbcadff276330 Cr-Commit-Position: refs/heads/master@{#408672}

Patch Set 1 : Mute system audio for getUserMedia(audio:System) #

Total comments: 4

Patch Set 2 : Memorize Mute Status Before Capture #

Total comments: 14

Patch Set 3 : Fix Issue #

Patch Set 4 : Run Git Cl Format #

Total comments: 10

Patch Set 5 : nit #

Patch Set 6 : Run Git Cl Format #

Total comments: 2

Patch Set 7 : Patch 3 #

Patch Set 8 : nit #

Patch Set 9 : Move mute to start #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -9 lines) Patch
M chrome/browser/media/desktop_capture_access_handler.cc View 4 chunks +10 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 1 chunk +3 lines, -1 line 0 comments Download
M media/audio/audio_device_description.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/audio_device_description.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M media/audio/cras/cras_input.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/cras/cras_input.cc View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -2 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -0 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.cc View 1 2 3 4 5 6 7 8 6 chunks +38 lines, -3 lines 0 comments Download
M media/audio/win/core_audio_util_win.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 100 (71 generated)
qiangchen
Can you glance at this experimental CL? This is the minimal change set I can ...
4 years, 5 months ago (2016-07-18 20:54:21 UTC) #6
miu
General approach seems fine to me. Ideally, you should loop in someone that's spent time ...
4 years, 5 months ago (2016-07-19 01:09:44 UTC) #9
qiangchen
Implementation for muting system audio during full screen cast. henrika@: can you focus on the ...
4 years, 5 months ago (2016-07-20 22:13:22 UTC) #23
DaleCurtis
Why do this vs using the normal muting API in AudioSyncReader?
4 years, 5 months ago (2016-07-20 22:54:02 UTC) #24
qiangchen
On 2016/07/20 22:54:02, DaleCurtis wrote: > Why do this vs using the normal muting API ...
4 years, 5 months ago (2016-07-20 23:05:07 UTC) #25
DaleCurtis
I see, general approach sounds fine to me, but don't know enough about the Windows ...
4 years, 5 months ago (2016-07-21 18:01:33 UTC) #26
henrika (OOO until Aug 14)
Please extend the comments and try to avoid duplicating code in the Windows implementation. Also, ...
4 years, 5 months ago (2016-07-25 08:38:19 UTC) #27
qiangchen
Fixed. https://codereview.chromium.org/2144333002/diff/100001/media/audio/audio_device_description.h File media/audio/audio_device_description.h (right): https://codereview.chromium.org/2144333002/diff/100001/media/audio/audio_device_description.h#newcode33 media/audio/audio_device_description.h:33: static const char kLoopbackWithMuteDeviceId[]; On 2016/07/25 08:38:19, henrika ...
4 years, 5 months ago (2016-07-25 22:42:22 UTC) #48
henrika (OOO until Aug 14)
LGTM with nits https://codereview.chromium.org/2144333002/diff/220001/media/audio/audio_device_description.h File media/audio/audio_device_description.h (right): https://codereview.chromium.org/2144333002/diff/220001/media/audio/audio_device_description.h#newcode34 media/audio/audio_device_description.h:34: // Similar with |kLoopbackInputDeviceId|, with only ...
4 years, 5 months ago (2016-07-26 10:04:26 UTC) #51
henrika (OOO until Aug 14)
(focused on Windows parts)
4 years, 5 months ago (2016-07-26 10:04:47 UTC) #52
qiangchen
dalecurtis@ and miu@: can you take a look at this CL? Henrik has finished his ...
4 years, 4 months ago (2016-07-26 16:53:02 UTC) #60
DaleCurtis
Why have the media/audio/win files changed so much? I don't see what git cl format ...
4 years, 4 months ago (2016-07-26 23:42:58 UTC) #63
qiangchen
On 2016/07/26 23:42:58, DaleCurtis wrote: > Why have the media/audio/win files changed so much? I ...
4 years, 4 months ago (2016-07-26 23:47:35 UTC) #64
DaleCurtis
Sure, but can you do a white space change to those files and cl format ...
4 years, 4 months ago (2016-07-26 23:49:14 UTC) #65
DaleCurtis
You should also be able to update the hyper-blame ignore list to skip that during ...
4 years, 4 months ago (2016-07-26 23:49:50 UTC) #66
henrika (OOO until Aug 14)
Yes, please avoid making "git cl format" changes in this CL. It blocks the view.
4 years, 4 months ago (2016-07-27 08:28:58 UTC) #67
qiangchen
Moved the mute to Start() Removed the git cl format. https://codereview.chromium.org/2144333002/diff/280001/media/audio/cras/cras_input.cc File media/audio/cras/cras_input.cc (right): https://codereview.chromium.org/2144333002/diff/280001/media/audio/cras/cras_input.cc#newcode244 ...
4 years, 4 months ago (2016-07-27 17:23:48 UTC) #72
DaleCurtis
Doesn't look like cl format has been removed, still massive diffs.
4 years, 4 months ago (2016-07-27 17:55:23 UTC) #75
qiangchen
On 2016/07/27 17:55:23, DaleCurtis wrote: > Doesn't look like cl format has been removed, still ...
4 years, 4 months ago (2016-07-27 18:29:40 UTC) #76
DaleCurtis
? I'm just looking at the default view. I.e. what shows up directly on https://codereview.chromium.org/2144333002 ...
4 years, 4 months ago (2016-07-27 18:31:04 UTC) #77
qiangchen
On 2016/07/27 18:31:04, DaleCurtis wrote: > ? I'm just looking at the default view. I.e. ...
4 years, 4 months ago (2016-07-27 19:28:43 UTC) #78
DaleCurtis
I think something is misconfigured on your machine. Even the side by side diff is ...
4 years, 4 months ago (2016-07-27 20:36:04 UTC) #79
qiangchen
On 2016/07/27 20:36:04, DaleCurtis wrote: > I think something is misconfigured on your machine. Even ...
4 years, 4 months ago (2016-07-27 20:44:55 UTC) #81
DaleCurtis
lgtm
4 years, 4 months ago (2016-07-27 20:46:52 UTC) #82
qiangchen
henrika@: Can you take a look again. I moved the mute process to Start().
4 years, 4 months ago (2016-07-27 22:14:00 UTC) #85
henrika (OOO until Aug 14)
LGTM (it looks better now, thanks)
4 years, 4 months ago (2016-07-28 08:25:01 UTC) #93
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2144333002/420001
4 years, 4 months ago (2016-07-29 15:47:58 UTC) #96
commit-bot: I haz the power
Committed patchset #10 (id:420001)
4 years, 4 months ago (2016-07-29 17:22:17 UTC) #98
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 17:25:47 UTC) #100
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/a282a4569fe0786fe2bec8c9d0bfbcadff276330
Cr-Commit-Position: refs/heads/master@{#408672}

Powered by Google App Engine
This is Rietveld 408576698