|
|
Created:
3 years, 9 months ago by Guido Urdaneta Modified:
3 years, 9 months ago Reviewers:
hbos_chromium 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, mcasas+watch+vc_chromium.org, jasonroberts+watch_google.com, xjz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org, hta - Chromium Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionUse spec-compliant algorithm for video content-capture deviceId selection in getUserMedia.
Other settings are chosen based on the old algorithm.
BUG=657733
Review-Url: https://codereview.chromium.org/2750163002
Cr-Commit-Position: refs/heads/master@{#457844}
Committed: https://chromium.googlesource.com/chromium/src/+/8fca31274c6a41144b4f4ee63496c3cc18f15f54
Patch Set 1 #
Total comments: 4
Patch Set 2 : address review comments and rebase #
Messages
Total messages: 29 (22 generated)
Patchset #1 (id:1) has been deleted
Patchset #1 (id:20001) has been deleted
The CQ bit was checked by guidou@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/...)
The CQ bit was checked by guidou@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Use spec-compliant algorithm for video content-capture deviceId selection in getUserMedia. Other settings are chosen based on the old algorithm. BUG=657733 ========== to ========== Use spec-compliant algorithm for video content-capture deviceId selection in getUserMedia. Other settings are chosen based on the old algorithm. BUG=657733 ==========
guidou@chromium.org changed reviewers: + hbos@chromium.org
Hi, PTAL
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Patchset #1 (id:40001) has been deleted
Patchset #1 (id:60001) has been deleted
The CQ bit was checked by guidou@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2750163002/diff/80001/content/renderer/media/... File content/renderer/media/user_media_client_impl.cc (right): https://codereview.chromium.org/2750163002/diff/80001/content/renderer/media/... content/renderer/media/user_media_client_impl.cc:474: controls->video.device_id.c_str())); I noticed we do FinalizeRequestUserMedia if !video; are we requesting video device even if !user_media_request.video()? Likewise with audio? Does this need to be modified? Should we DCHECK audio() || video()? How does WebUserMediaRequest.audio()/video() align with StreamControls.audio/video.requested?
https://codereview.chromium.org/2750163002/diff/80001/content/renderer/media/... File content/renderer/media/user_media_client_impl.cc (right): https://codereview.chromium.org/2750163002/diff/80001/content/renderer/media/... content/renderer/media/user_media_client_impl.cc:474: controls->video.device_id.c_str())); On 2017/03/17 11:53:28, hbos_chromium wrote: > I noticed we do FinalizeRequestUserMedia if !video; are we requesting video > device even if !user_media_request.video()? Likewise with audio? > Does this need to be modified? Should we DCHECK audio() || video()? > > How does WebUserMediaRequest.audio()/video() align with > StreamControls.audio/video.requested? If audio and video are both false, the constraints parser detects that (in Blink) and getUserMedia aborts with a TypeError. That happens before the request arrives to UserMediaClientImpl. In UserMediaClientImpl, we are sure that at least one of them has been provided and FinalizeRequestUserMedia must be called unless there are errors processing the constraints. StreamConstrols.audio/video.requested is set in CopyConstraintsToStreamControl() for audio, and InitializeStreamControls() for video (starting on this CL).
lgtm assuming the unittest does not need to be updated? https://codereview.chromium.org/2750163002/diff/80001/content/renderer/media/... File content/renderer/media/user_media_client_impl.cc (right): https://codereview.chromium.org/2750163002/diff/80001/content/renderer/media/... content/renderer/media/user_media_client_impl.cc:474: controls->video.device_id.c_str())); On 2017/03/17 12:33:42, Guido Urdaneta wrote: > On 2017/03/17 11:53:28, hbos_chromium wrote: > > I noticed we do FinalizeRequestUserMedia if !video; are we requesting video > > device even if !user_media_request.video()? Likewise with audio? > > Does this need to be modified? Should we DCHECK audio() || video()? > > > > How does WebUserMediaRequest.audio()/video() align with > > StreamControls.audio/video.requested? > > If audio and video are both false, the constraints parser detects that (in > Blink) and getUserMedia aborts with a TypeError. That happens before the request > arrives to UserMediaClientImpl. > In UserMediaClientImpl, we are sure that at least one of them has been provided > and FinalizeRequestUserMedia must be called unless there are errors processing > the constraints. > > StreamConstrols.audio/video.requested is set in CopyConstraintsToStreamControl() > for audio, and InitializeStreamControls() for video (starting on this CL). OK. Can we DCHECK audio or video in the public requestUserMedia?
The CQ bit was checked by guidou@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from hbos@chromium.org Link to the patchset: https://codereview.chromium.org/2750163002/#ps100001 (title: "address review comments and rebase")
https://codereview.chromium.org/2750163002/diff/80001/content/renderer/media/... File content/renderer/media/user_media_client_impl.cc (right): https://codereview.chromium.org/2750163002/diff/80001/content/renderer/media/... content/renderer/media/user_media_client_impl.cc:474: controls->video.device_id.c_str())); On 2017/03/17 15:27:39, hbos_chromium wrote: > On 2017/03/17 12:33:42, Guido Urdaneta wrote: > > On 2017/03/17 11:53:28, hbos_chromium wrote: > > > I noticed we do FinalizeRequestUserMedia if !video; are we requesting video > > > device even if !user_media_request.video()? Likewise with audio? > > > Does this need to be modified? Should we DCHECK audio() || video()? > > > > > > How does WebUserMediaRequest.audio()/video() align with > > > StreamControls.audio/video.requested? > > > > If audio and video are both false, the constraints parser detects that (in > > Blink) and getUserMedia aborts with a TypeError. That happens before the > request > > arrives to UserMediaClientImpl. > > In UserMediaClientImpl, we are sure that at least one of them has been > provided > > and FinalizeRequestUserMedia must be called unless there are errors processing > > the constraints. > > > > StreamConstrols.audio/video.requested is set in > CopyConstraintsToStreamControl() > > for audio, and InitializeStreamControls() for video (starting on this CL). > > OK. Can we DCHECK audio or video in the public requestUserMedia? Done.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 100001, "attempt_start_ts": 1489774408925750, "parent_rev": "81a2d796ecde51050ebf057af9426b251cad9028", "commit_rev": "8fca31274c6a41144b4f4ee63496c3cc18f15f54"}
Message was sent while issue was closed.
Description was changed from ========== Use spec-compliant algorithm for video content-capture deviceId selection in getUserMedia. Other settings are chosen based on the old algorithm. BUG=657733 ========== to ========== Use spec-compliant algorithm for video content-capture deviceId selection in getUserMedia. Other settings are chosen based on the old algorithm. BUG=657733 Review-Url: https://codereview.chromium.org/2750163002 Cr-Commit-Position: refs/heads/master@{#457844} Committed: https://chromium.googlesource.com/chromium/src/+/8fca31274c6a41144b4f4ee63496... ==========
Message was sent while issue was closed.
Committed patchset #2 (id:100001) as https://chromium.googlesource.com/chromium/src/+/8fca31274c6a41144b4f4ee63496... |