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

Issue 2416123002: Stop media stream source when audio capture error occurs. (Closed)

Created:
4 years, 2 months ago by xjz
Modified:
4 years, 2 months ago
Reviewers:
miu
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, o1ka
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop media stream source when audio capture error occurs. This is to ensure that session ends when closing the tab while audio is mirroring. BUG=655841 Committed: https://crrev.com/9d67562879f4cbddb2c1ddd08225310cea891490 Cr-Commit-Position: refs/heads/master@{#426400}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Handle audio capture error in MediaStreamAudioSource. #

Patch Set 3 : Fix unit tests. #

Total comments: 8

Patch Set 4 : Addressed comments. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -19 lines) Patch
M content/renderer/media/external_media_stream_audio_source.cc View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M content/renderer/media/local_media_stream_audio_source.cc View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M content/renderer/media/media_stream_audio_source.h View 1 2 3 3 chunks +14 lines, -4 lines 0 comments Download
M content/renderer/media/media_stream_audio_source.cc View 1 2 3 6 chunks +18 lines, -7 lines 0 comments Download
M content/renderer/media/media_stream_audio_unittest.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/media/speech_recognition_audio_sink_unittest.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc/processed_local_audio_source.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (18 generated)
xjz
PTAL
4 years, 2 months ago (2016-10-14 00:16:47 UTC) #3
miu
https://codereview.chromium.org/2416123002/diff/1/content/renderer/media/local_media_stream_audio_source.cc File content/renderer/media/local_media_stream_audio_source.cc (right): https://codereview.chromium.org/2416123002/diff/1/content/renderer/media/local_media_stream_audio_source.cc#newcode109 content/renderer/media/local_media_stream_audio_source.cc:109: FROM_HERE, base::Bind(&MediaStreamSource::StopSource, AsWeakPtr())); Why do we need the task ...
4 years, 2 months ago (2016-10-14 05:38:27 UTC) #4
miu
Just occurred to me: This problem is probably present in the other subclasses of MediaStreamAudioSource.
4 years, 2 months ago (2016-10-14 05:45:23 UTC) #5
xjz
https://codereview.chromium.org/2416123002/diff/1/content/renderer/media/local_media_stream_audio_source.cc File content/renderer/media/local_media_stream_audio_source.cc (right): https://codereview.chromium.org/2416123002/diff/1/content/renderer/media/local_media_stream_audio_source.cc#newcode109 content/renderer/media/local_media_stream_audio_source.cc:109: FROM_HERE, base::Bind(&MediaStreamSource::StopSource, AsWeakPtr())); On 2016/10/14 05:38:26, miu_OOO_until_17_Oct wrote: > ...
4 years, 2 months ago (2016-10-14 17:32:53 UTC) #6
xjz
On 2016/10/14 05:45:23, miu_OOO_until_17_Oct wrote: > Just occurred to me: This problem is probably present ...
4 years, 2 months ago (2016-10-14 17:34:44 UTC) #7
miu
On 2016/10/14 17:32:53, xjz wrote: > When tab is closed, this is called on io ...
4 years, 2 months ago (2016-10-18 21:23:34 UTC) #8
xjz
On 2016/10/18 21:23:34, miu wrote: > On 2016/10/14 17:32:53, xjz wrote: > > When tab ...
4 years, 2 months ago (2016-10-19 19:04:25 UTC) #11
miu
[ +cc olka@, FYI ] lgtm % nits: https://codereview.chromium.org/2416123002/diff/20002/content/renderer/media/media_stream_audio_source.h File content/renderer/media/media_stream_audio_source.h (right): https://codereview.chromium.org/2416123002/diff/20002/content/renderer/media/media_stream_audio_source.h#newcode130 content/renderer/media/media_stream_audio_source.h:130: // ...
4 years, 2 months ago (2016-10-19 22:43:22 UTC) #18
miu
Oh, FYI: I have a change in the CQ right now (https://codereview.chromium.org/2425353002/) that will require ...
4 years, 2 months ago (2016-10-19 22:56:10 UTC) #19
xjz
Addressed comments. Thanks. :) https://chromiumcodereview.appspot.com/2416123002/diff/20002/content/renderer/media/media_stream_audio_source.h File content/renderer/media/media_stream_audio_source.h (right): https://chromiumcodereview.appspot.com/2416123002/diff/20002/content/renderer/media/media_stream_audio_source.h#newcode130 content/renderer/media/media_stream_audio_source.h:130: // Called by subclasses when ...
4 years, 2 months ago (2016-10-19 23:59:36 UTC) #20
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/2416123002/70001
4 years, 2 months ago (2016-10-20 02:38:12 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:70001)
4 years, 2 months ago (2016-10-20 04:17:38 UTC) #29
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:15:24 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9d67562879f4cbddb2c1ddd08225310cea891490
Cr-Commit-Position: refs/heads/master@{#426400}

Powered by Google App Engine
This is Rietveld 408576698