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

Issue 2777583002: Move getUserMedia finish to "when audio track configured". (Closed)

Created:
3 years, 9 months ago by hta - Chromium
Modified:
3 years, 8 months ago
Reviewers:
Guido Urdaneta
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, jam, avayvod+watch_chromium.org, darin-cc_chromium.org, jasonroberts+watch_google.com, xjz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move getUserMedia finish to "when audio track configured". Previously, getUserMedia() would complete as soon as the sources were initialized - which did not do all the initialization. This CL will make getUserMedia() return when the track has been told of its configuration through OnSetFormat() from upstream. This will allow GetSettings() to read the audio configuration from the track without worrying about whether the configuration is propagated or not. BUG=704918 Review-Url: https://codereview.chromium.org/2777583002 Cr-Commit-Position: refs/heads/master@{#462523} Committed: https://chromium.googlesource.com/chromium/src/+/a52d69d1877b170684041bed04d28acced85e40d

Patch Set 1 #

Patch Set 2 : Ensure callback is called on owner thread #

Patch Set 3 : UserMediaClientImplUnittest passes #

Patch Set 4 : Lock access to the track callback #

Patch Set 5 : Thread-safety on unittest #

Total comments: 10

Patch Set 6 : Review comments #

Patch Set 7 : Fix error introduced when addressing review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -20 lines) Patch
M content/renderer/media/media_stream_audio_source.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/media_stream_audio_track.h View 1 2 3 4 5 4 chunks +13 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_audio_track.cc View 1 2 3 4 5 2 chunks +18 lines, -2 lines 0 comments Download
M content/renderer/media/media_stream_audio_unittest.cc View 1 2 3 4 5 chunks +34 lines, -0 lines 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 1 2 3 4 5 6 5 chunks +17 lines, -7 lines 1 comment Download
M content/renderer/media/user_media_client_impl_unittest.cc View 1 2 3 chunks +33 lines, -10 lines 0 comments Download

Messages

Total messages: 46 (35 generated)
hta - Chromium
I think this is ready for review.
3 years, 8 months ago (2017-04-06 07:55:12 UTC) #13
Guido Urdaneta
https://codereview.chromium.org/2777583002/diff/80001/content/renderer/media/media_stream_audio_track.cc File content/renderer/media/media_stream_audio_track.cc (right): https://codereview.chromium.org/2777583002/diff/80001/content/renderer/media/media_stream_audio_track.cc#newcode158 content/renderer/media/media_stream_audio_track.cc:158: DCHECK(format_is_set_); Does format_is_set_ need to be protected by the ...
3 years, 8 months ago (2017-04-06 13:18:57 UTC) #25
hta - Chromium
Better now? https://codereview.chromium.org/2777583002/diff/80001/content/renderer/media/media_stream_audio_track.cc File content/renderer/media/media_stream_audio_track.cc (right): https://codereview.chromium.org/2777583002/diff/80001/content/renderer/media/media_stream_audio_track.cc#newcode158 content/renderer/media/media_stream_audio_track.cc:158: DCHECK(format_is_set_); On 2017/04/06 13:18:57, Guido Urdaneta wrote: ...
3 years, 8 months ago (2017-04-06 13:57:52 UTC) #26
Guido Urdaneta
lgtm https://codereview.chromium.org/2777583002/diff/80001/content/renderer/media/media_stream_audio_track.cc File content/renderer/media/media_stream_audio_track.cc (right): https://codereview.chromium.org/2777583002/diff/80001/content/renderer/media/media_stream_audio_track.cc#newcode158 content/renderer/media/media_stream_audio_track.cc:158: DCHECK(format_is_set_); On 2017/04/06 13:18:57, Guido Urdaneta wrote: > ...
3 years, 8 months ago (2017-04-06 14:01:05 UTC) #29
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/2777583002/100001
3 years, 8 months ago (2017-04-06 15:24:09 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/151810) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 8 months ago (2017-04-06 15:28:29 UTC) #37
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/2777583002/120001
3 years, 8 months ago (2017-04-06 15:38:27 UTC) #40
Guido Urdaneta
https://codereview.chromium.org/2777583002/diff/120001/content/renderer/media/user_media_client_impl.cc File content/renderer/media/user_media_client_impl.cc (right): https://codereview.chromium.org/2777583002/diff/120001/content/renderer/media/user_media_client_impl.cc#newcode1295 content/renderer/media/user_media_client_impl.cc:1295: if (!is_pending && !connected) { Shouldn't it fail if ...
3 years, 8 months ago (2017-04-06 15:48:40 UTC) #41
Guido Urdaneta
On 2017/04/06 15:48:40, Guido Urdaneta wrote: > https://codereview.chromium.org/2777583002/diff/120001/content/renderer/media/user_media_client_impl.cc > File content/renderer/media/user_media_client_impl.cc (right): > > https://codereview.chromium.org/2777583002/diff/120001/content/renderer/media/user_media_client_impl.cc#newcode1295 ...
3 years, 8 months ago (2017-04-06 15:59:40 UTC) #42
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/a52d69d1877b170684041bed04d28acced85e40d
3 years, 8 months ago (2017-04-06 17:19:23 UTC) #45
foolip
3 years, 8 months ago (2017-04-07 05:20:39 UTC) #46
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/2803183002/ by foolip@chromium.org.

The reason for reverting is: The added DCHECK(format_is_set()) is failing in
MediaStreamTrack-getSettings.html

BUG=709188.

Powered by Google App Engine
This is Rietveld 408576698