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

Issue 2668023002: Spec-compatible algorithm for selecting video source and settings. (Closed)

Created:
3 years, 10 months ago by Guido Urdaneta
Modified:
3 years, 10 months ago
CC:
avayvod+watch_chromium.org, chfremer+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jam, jasonroberts+watch_google.com, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, tommi (sloooow) - chröme, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Spec-compatible algorithm for selecting video source and settings. This is a step towards providing spec-compliant constraints support for getUserMedia and applyConstraints. This CL will be followed by two CLs to integrate the algorithm into Chromium. 1. A CL that uses this algorithm to select the correct video-capture device in getUserMedia (settings will still be chosen with the old algorithm). 2. A CL that replaces the existing algorithm for video-source settings in getUserMedia with the spec-compliant one. BUG=657733 Review-Url: https://codereview.chromium.org/2668023002 Cr-Commit-Position: refs/heads/master@{#448966} Committed: https://chromium.googlesource.com/chromium/src/+/983f3e3990d1048b85275d7b455ca6ca78bf5e23

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix windows compile issue #

Patch Set 3 : Add documentation and better support for the case without capabilities #

Patch Set 4 : remove public kDefaultFailedConstraintName. Use empty string instead. #

Total comments: 12

Patch Set 5 : Address hta@'s comments #

Patch Set 6 : rebase #

Total comments: 16

Patch Set 7 : Address hbos' comments #

Total comments: 8

Patch Set 8 : address hbos' comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2167 lines, -0 lines) Patch
M content/renderer/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A content/renderer/media/media_stream_constraints_util_video_source.h View 1 2 3 4 5 6 7 1 chunk +155 lines, -0 lines 0 comments Download
A content/renderer/media/media_stream_constraints_util_video_source.cc View 1 2 3 4 5 6 7 1 chunk +732 lines, -0 lines 0 comments Download
A content/renderer/media/media_stream_constraints_util_video_source_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1277 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 46 (30 generated)
chfremer
Looks pretty nice overall. I have just two small questions/recommendations. https://codereview.chromium.org/2668023002/diff/20001/content/renderer/media/media_stream_constraints_util_video_source.h File content/renderer/media/media_stream_constraints_util_video_source.h (right): https://codereview.chromium.org/2668023002/diff/20001/content/renderer/media/media_stream_constraints_util_video_source.h#newcode109 ...
3 years, 10 months ago (2017-01-31 18:23:00 UTC) #10
Guido Urdaneta
Hi, PTAL. https://codereview.chromium.org/2668023002/diff/20001/content/renderer/media/media_stream_constraints_util_video_source.h File content/renderer/media/media_stream_constraints_util_video_source.h (right): https://codereview.chromium.org/2668023002/diff/20001/content/renderer/media/media_stream_constraints_util_video_source.h#newcode109 content/renderer/media/media_stream_constraints_util_video_source.h:109: // result with a valid settings value ...
3 years, 10 months ago (2017-01-31 20:10:27 UTC) #11
hta - Chromium
Looks good. A few language nits on commentary, and some suggestions on grouping the (long) ...
3 years, 10 months ago (2017-02-02 00:32:40 UTC) #20
Guido Urdaneta
https://codereview.chromium.org/2668023002/diff/80001/content/renderer/media/media_stream_constraints_util_video_source.cc File content/renderer/media/media_stream_constraints_util_video_source.cc (right): https://codereview.chromium.org/2668023002/diff/80001/content/renderer/media/media_stream_constraints_util_video_source.cc#newcode375 content/renderer/media/media_stream_constraints_util_video_source.cc:375: // frameRate constraint. On 2017/02/02 00:32:39, hta - Chromium ...
3 years, 10 months ago (2017-02-02 11:35:39 UTC) #21
Guido Urdaneta
friendly ping to reviewers
3 years, 10 months ago (2017-02-07 09:40:46 UTC) #22
hta - Chromium
lgtm https://codereview.chromium.org/2668023002/diff/120001/content/renderer/media/media_stream_constraints_util_video_source.cc File content/renderer/media/media_stream_constraints_util_video_source.cc (right): https://codereview.chromium.org/2668023002/diff/120001/content/renderer/media/media_stream_constraints_util_video_source.cc#newcode47 content/renderer/media/media_stream_constraints_util_video_source.cc:47: template <typename ConstraintType> Not for this CL: If ...
3 years, 10 months ago (2017-02-07 10:57:41 UTC) #23
Guido Urdaneta
hbos@: can you take a look?
3 years, 10 months ago (2017-02-07 13:13:35 UTC) #25
Guido Urdaneta
https://codereview.chromium.org/2668023002/diff/120001/content/renderer/media/media_stream_constraints_util_video_source.cc File content/renderer/media/media_stream_constraints_util_video_source.cc (right): https://codereview.chromium.org/2668023002/diff/120001/content/renderer/media/media_stream_constraints_util_video_source.cc#newcode47 content/renderer/media/media_stream_constraints_util_video_source.cc:47: template <typename ConstraintType> On 2017/02/07 10:57:41, hta - Chromium ...
3 years, 10 months ago (2017-02-07 13:14:26 UTC) #26
hbos_chromium
The code looks good to me, my questions is more about understanding the algorithm and ...
3 years, 10 months ago (2017-02-07 19:17:13 UTC) #27
Guido Urdaneta
https://codereview.chromium.org/2668023002/diff/120001/content/renderer/media/media_stream_constraints_util_video_source.cc File content/renderer/media/media_stream_constraints_util_video_source.cc (right): https://codereview.chromium.org/2668023002/diff/120001/content/renderer/media/media_stream_constraints_util_video_source.cc#newcode157 content/renderer/media/media_stream_constraints_util_video_source.cc:157: // If the source value exceeds the maximum requested, ...
3 years, 10 months ago (2017-02-07 22:31:07 UTC) #29
hbos_chromium
lgtm https://codereview.chromium.org/2668023002/diff/160001/content/renderer/media/media_stream_constraints_util_video_source.cc File content/renderer/media/media_stream_constraints_util_video_source.cc (right): https://codereview.chromium.org/2668023002/diff/160001/content/renderer/media/media_stream_constraints_util_video_source.cc#newcode75 content/renderer/media/media_stream_constraints_util_video_source.cc:75: double Distance(double value1, double value2) { Here and ...
3 years, 10 months ago (2017-02-08 09:45:01 UTC) #32
Guido Urdaneta
https://codereview.chromium.org/2668023002/diff/160001/content/renderer/media/media_stream_constraints_util_video_source.cc File content/renderer/media/media_stream_constraints_util_video_source.cc (right): https://codereview.chromium.org/2668023002/diff/160001/content/renderer/media/media_stream_constraints_util_video_source.cc#newcode75 content/renderer/media/media_stream_constraints_util_video_source.cc:75: double Distance(double value1, double value2) { On 2017/02/08 09:45:00, ...
3 years, 10 months ago (2017-02-08 10:50:42 UTC) #33
Guido Urdaneta
jochen@: can you rs/look at content/renderer/BUILD.gn?
3 years, 10 months ago (2017-02-08 10:52:47 UTC) #35
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-08 11:40:49 UTC) #38
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/2668023002/180001
3 years, 10 months ago (2017-02-08 12:30:28 UTC) #43
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 12:35:22 UTC) #46
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/983f3e3990d1048b85275d7b455c...

Powered by Google App Engine
This is Rietveld 408576698