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

Issue 857093002: Set audio format before adding pepper sink to audio track. (Closed)

Created:
5 years, 11 months ago by Anand Mistry (off Chromium)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, mlamouri+watch-content_chromium.org, hguihot+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, pwestin+watch_google.com, posciak+watch_chromium.org, darin-cc_chromium.org, jasonroberts+watch_google.com, mkwst+moarreviews-renderer_chromium.org, miu+watch_chromium.org, wjia+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set audio format before adding pepper sink to audio track. Some audio input devices don't generate caputure data in a continuous basis, and instead only generate when some event happens. This may be an indefinite amount of time. However, |AudioSink::OnSetFormat| is only called whenever new samples come in. For pepper plugins, this means that |MediaStreamAudioTrack::Configure| can be blocked indefintely on these devices. To work around this, get the format before attaching to the audio track. BUG=403138 Committed: https://crrev.com/ec4c42f4ef67badad8b5d13190d4630aa31a9188 Cr-Commit-Position: refs/heads/master@{#313458}

Patch Set 1 #

Patch Set 2 : Fix tests. #

Total comments: 15

Patch Set 3 : Rebase #

Patch Set 4 : Address review comments. #

Total comments: 8

Patch Set 5 : More review comments. #

Total comments: 2

Patch Set 6 : Compile fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -6 lines) Patch
M content/public/renderer/media_stream_audio_sink.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/renderer/media_stream_audio_sink.cc View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_audio_capturer.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_audio_track_host.h View 1 2 3 2 chunks +10 lines, -6 lines 0 comments Download
M content/renderer/pepper/pepper_media_stream_audio_track_host.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
Anand Mistry (off Chromium)
dmichael@chromium.org: Please review changes in pepper dalecurtis@chromium.org: Please review changes in everything else
5 years, 11 months ago (2015-01-19 23:16:02 UTC) #2
dmichael (off chromium)
https://codereview.chromium.org/857093002/diff/20001/content/public/renderer/media_stream_audio_sink.cc File content/public/renderer/media_stream_audio_sink.cc (right): https://codereview.chromium.org/857093002/diff/20001/content/public/renderer/media_stream_audio_sink.cc#newcode49 content/public/renderer/media_stream_audio_sink.cc:49: // return a reference. I think it would be ...
5 years, 11 months ago (2015-01-20 17:07:03 UTC) #3
DaleCurtis
https://codereview.chromium.org/857093002/diff/20001/content/public/renderer/media_stream_audio_sink.cc File content/public/renderer/media_stream_audio_sink.cc (right): https://codereview.chromium.org/857093002/diff/20001/content/public/renderer/media_stream_audio_sink.cc#newcode50 content/public/renderer/media_stream_audio_sink.cc:50: static const media::AudioParameters null_format; This seems unnecessary, just return ...
5 years, 11 months ago (2015-01-20 18:46:56 UTC) #4
Anand Mistry (off Chromium)
https://codereview.chromium.org/857093002/diff/20001/content/public/renderer/media_stream_audio_sink.cc File content/public/renderer/media_stream_audio_sink.cc (right): https://codereview.chromium.org/857093002/diff/20001/content/public/renderer/media_stream_audio_sink.cc#newcode49 content/public/renderer/media_stream_audio_sink.cc:49: // return a reference. On 2015/01/20 17:07:03, dmichael wrote: ...
5 years, 10 months ago (2015-01-27 02:12:10 UTC) #5
dmichael (off chromium)
just nits left. And some commentary on why to prefer return-by-value in this case. https://codereview.chromium.org/857093002/diff/20001/content/renderer/media/webrtc_local_audio_track.cc ...
5 years, 10 months ago (2015-01-27 18:24:10 UTC) #6
DaleCurtis
lgtm % our comments. https://codereview.chromium.org/857093002/diff/60001/content/renderer/media/webrtc_audio_capturer.h File content/renderer/media/webrtc_audio_capturer.h (right): https://codereview.chromium.org/857093002/diff/60001/content/renderer/media/webrtc_audio_capturer.h#newcode110 content/renderer/media/webrtc_audio_capturer.h:110: const media::AudioParameters& GetOutputFormat() const; Remove ...
5 years, 10 months ago (2015-01-27 19:50:09 UTC) #7
Anand Mistry (off Chromium)
https://codereview.chromium.org/857093002/diff/60001/content/public/renderer/media_stream_audio_sink.h File content/public/renderer/media_stream_audio_sink.h (right): https://codereview.chromium.org/857093002/diff/60001/content/public/renderer/media_stream_audio_sink.h#newcode42 content/public/renderer/media_stream_audio_sink.h:42: static const media::AudioParameters GetFormatFromAudioTrack( On 2015/01/27 18:24:10, dmichael wrote: ...
5 years, 10 months ago (2015-01-27 23:14:51 UTC) #8
dmichael (off chromium)
lgtm
5 years, 10 months ago (2015-01-27 23:16:13 UTC) #9
Anand Mistry (off Chromium)
avi@chromium.org: For content/public owners
5 years, 10 months ago (2015-01-27 23:17:30 UTC) #11
Avi (use Gerrit)
https://codereview.chromium.org/857093002/diff/80001/content/public/renderer/media_stream_audio_sink.cc File content/public/renderer/media_stream_audio_sink.cc (right): https://codereview.chromium.org/857093002/diff/80001/content/public/renderer/media_stream_audio_sink.cc#newcode50 content/public/renderer/media_stream_audio_sink.cc:50: LOG(ERROR) << "Can't get format from a remote audio ...
5 years, 10 months ago (2015-01-27 23:25:17 UTC) #12
Anand Mistry (off Chromium)
https://codereview.chromium.org/857093002/diff/80001/content/public/renderer/media_stream_audio_sink.cc File content/public/renderer/media_stream_audio_sink.cc (right): https://codereview.chromium.org/857093002/diff/80001/content/public/renderer/media_stream_audio_sink.cc#newcode50 content/public/renderer/media_stream_audio_sink.cc:50: LOG(ERROR) << "Can't get format from a remote audio ...
5 years, 10 months ago (2015-01-28 04:24:32 UTC) #13
Avi (use Gerrit)
On 2015/01/28 04:24:32, Anand Mistry wrote: > https://codereview.chromium.org/857093002/diff/80001/content/public/renderer/media_stream_audio_sink.cc > File content/public/renderer/media_stream_audio_sink.cc (right): > > https://codereview.chromium.org/857093002/diff/80001/content/public/renderer/media_stream_audio_sink.cc#newcode50 ...
5 years, 10 months ago (2015-01-28 04:42:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/857093002/80001
5 years, 10 months ago (2015-01-28 05:21:16 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/49372)
5 years, 10 months ago (2015-01-28 05:39:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/857093002/100001
5 years, 10 months ago (2015-01-28 06:06:42 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-01-28 07:31:50 UTC) #21
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 07:32:56 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ec4c42f4ef67badad8b5d13190d4630aa31a9188
Cr-Commit-Position: refs/heads/master@{#313458}

Powered by Google App Engine
This is Rietveld 408576698