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

Issue 2922733002: Propagate muted state from MediaStreamAudioSource into JS. (Closed)

Created:
3 years, 6 months ago by ossu-chromium
Modified:
3 years, 5 months ago
Reviewers:
Guido Urdaneta, miu
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, imcheng+watch_chromium.org, feature-media-reviews_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, blink-reviews, jam, avayvod+watch_chromium.org, tommyw+watchlist_chromium.org, darin-cc_chromium.org, jasonroberts+watch_google.com, haraken, xjz+watch_chromium.org, mfoltz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Propagate muted state from MediaStreamAudioSource into JS. BUG=chromium:729002 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;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 Review-Url: https://codereview.chromium.org/2922733002 Cr-Commit-Position: refs/heads/master@{#482609} Committed: https://chromium.googlesource.com/chromium/src/+/d998fd8a158eab8a17162049277c1f37aab1cf42

Patch Set 1 #

Patch Set 2 : Initial stab at getting mute to not affect visible readyState. #

Patch Set 3 : Added browser tests for AudioInputStream::IsMuted propagating to JS. #

Total comments: 1

Patch Set 4 : Updated WebKit MediaStreamTrack layout test to not expect readyState=muted #

Total comments: 4

Patch Set 5 : Also updated MediaStreamTrack-expected.txt. #

Total comments: 1

Patch Set 6 : SetMutedState -> SetGlobalMutedState. Also rebased. #

Patch Set 7 : Rebase: FakeAudioInputStream changes moved into earlier CL #

Total comments: 7

Patch Set 8 : Rebase #

Patch Set 9 : Made SetMuted call unconditional. Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -9 lines) Patch
M content/browser/webrtc/webrtc_getusermedia_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +52 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_audio_source.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/renderer/media/media_stream_source.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
M content/test/data/media/getusermedia.html View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M content/test/data/media/webrtc_test_utilities.js View 1 2 3 chunks +16 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/MediaStreamTrack-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 50 (38 generated)
ossu-chromium
Did a minimal, viable change to not have MediaStreamTrack.readyState change to "muted" in JS. Ideally, ...
3 years, 6 months ago (2017-06-02 15:39:21 UTC) #2
Guido Urdaneta
The change looks good to me. Will wait for the test.
3 years, 6 months ago (2017-06-02 15:58:32 UTC) #3
ossu-chromium
Tests added. Put them in with the WebRTC getUserMedia browser tests. It seemed like the ...
3 years, 6 months ago (2017-06-07 17:20:45 UTC) #7
Guido Urdaneta
Looks good in general. I have a couple of nits and a question. Also, it ...
3 years, 6 months ago (2017-06-08 14:15:06 UTC) #10
ossu-chromium
On 2017/06/08 14:15:06, Guido Urdaneta wrote: > Looks good in general. I have a couple ...
3 years, 6 months ago (2017-06-08 14:52:08 UTC) #11
Guido Urdaneta
On 2017/06/08 14:52:08, ossu-chromium wrote: > On 2017/06/08 14:15:06, Guido Urdaneta wrote: > > Looks ...
3 years, 6 months ago (2017-06-08 15:29:49 UTC) #12
ossu-chromium
Hi miu, Could you have a look, especially on the media_stream{,_audio}_source stuff? I also believe ...
3 years, 6 months ago (2017-06-09 15:45:22 UTC) #19
miu
BTW--I'm not an owner for the blink code. You'll have to find another reviewer for ...
3 years, 6 months ago (2017-06-19 19:40:38 UTC) #33
ossu-chromium
On 2017/06/19 19:40:38, miu wrote: > BTW--I'm not an owner for the blink code. You'll ...
3 years, 5 months ago (2017-06-26 16:06:14 UTC) #39
miu
PS9 lgtm. https://codereview.chromium.org/2922733002/diff/140001/content/renderer/media/media_stream_source.cc File content/renderer/media/media_stream_source.cc (right): https://codereview.chromium.org/2922733002/diff/140001/content/renderer/media/media_stream_source.cc#newcode31 content/renderer/media/media_stream_source.cc:31: // TODO(ossu): Check that we only go ...
3 years, 5 months ago (2017-06-26 23:01:08 UTC) #44
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/2922733002/200001
3 years, 5 months ago (2017-06-27 12:57:02 UTC) #47
commit-bot: I haz the power
3 years, 5 months ago (2017-06-27 13:02:35 UTC) #50
Message was sent while issue was closed.
Committed patchset #9 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/d998fd8a158eab8a17162049277c...

Powered by Google App Engine
This is Rietveld 408576698