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

Issue 15979027: start/stop the source of the capturer when 1st audiotrack/last audiotrack is added/removed (Closed)

Created:
7 years, 6 months ago by no longer working on chromium
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Visibility:
Public.

Description

This patch starts the source of the capturer when the first audiotrack is added to the capturer; and stops the source of the capturer when the last audiotrack is removed from the capturer. BUG=242520 TEST=content_unittests --gtest_filter=="*WebRtcLocalAudioTrackTest*" open chrome, go to https://apprtc.appspot.com/?debug=loopback after the call setup, open javascript console, run: navigator.webkitGetUserMedia({audio:true},function(s){s.stop();}) It should not stop the audio. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205595

Patch Set 1 : #

Total comments: 52

Patch Set 2 : addressed Henrik's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -133 lines) Patch
M content/renderer/media/media_stream_dependency_factory.cc View 1 2 chunks +10 lines, -13 lines 0 comments Download
M content/renderer/media/mock_media_stream_dependency_factory.h View 1 1 chunk +0 lines, -28 lines 0 comments Download
M content/renderer/media/mock_media_stream_dependency_factory.cc View 1 3 chunks +5 lines, -42 lines 0 comments Download
M content/renderer/media/webaudio_capturer_source.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/webrtc_audio_capturer.h View 1 4 chunks +26 lines, -10 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.cc View 1 3 chunks +53 lines, -15 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_impl.cc View 1 4 chunks +18 lines, -12 lines 0 comments Download
M content/renderer/media/webrtc_audio_device_unittest.cc View 1 7 chunks +26 lines, -6 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track.cc View 1 2 chunks +20 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track_unittest.cc View 1 10 chunks +74 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
henrika (OOO until Aug 14)
Looks good Shijing; a bit tricky to follow all the new details and I have ...
7 years, 6 months ago (2013-06-05 09:09:20 UTC) #1
no longer working on chromium
Henrik, I think I have already addressed your comments, PTAL. https://codereview.chromium.org/15979027/diff/2001/content/renderer/media/media_stream_dependency_factory.cc File content/renderer/media/media_stream_dependency_factory.cc (right): https://codereview.chromium.org/15979027/diff/2001/content/renderer/media/media_stream_dependency_factory.cc#newcode411 ...
7 years, 6 months ago (2013-06-05 16:29:45 UTC) #2
no longer working on chromium
Ping. Henrik, I know you are quite busy, but there is a new bug popping ...
7 years, 6 months ago (2013-06-08 19:57:14 UTC) #3
henrika (OOO until Aug 14)
LGTM. Please ensure that it works on all bots as well...
7 years, 6 months ago (2013-06-11 07:48:55 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/15979027/2002
7 years, 6 months ago (2013-06-11 14:38:36 UTC) #5
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 6 months ago (2013-06-11 18:34:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/15979027/2002
7 years, 6 months ago (2013-06-11 18:36:00 UTC) #7
commit-bot: I haz the power
7 years, 6 months ago (2013-06-11 18:36:17 UTC) #8
Message was sent while issue was closed.
Change committed as 205595

Powered by Google App Engine
This is Rietveld 408576698