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

Issue 1977513004: Adds multiple forms of MediaStreamTrack constraints (Closed)

Created:
4 years, 7 months ago by hta - Chromium
Modified:
4 years, 7 months ago
CC:
chromium-reviews, blink-reviews, haraken, tommyw+watchlist_chromium.org, blink-reviews-bindings_chromium.org, mcasas+watch+mediastream_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds multiple forms of MediaStreamTrack constraints This allows one to write "width: 56" with the same meaning as "width: {ideal: 56}", and similar for other constraints. Spec: http://w3c.github.io/mediacapture-main/getusermedia.html#types-for-constrainable-properties BUG=webrtc:4906 Committed: https://crrev.com/7c0965c6e6012f9bc3fc596ba5c26866f7b9ddea Cr-Commit-Position: refs/heads/master@{#395857}

Patch Set 1 #

Patch Set 2 : Added GYP file for mac builds #

Patch Set 3 : Changed tests to test things that work #

Total comments: 2

Patch Set 4 : Cleaned up for review #

Total comments: 7

Patch Set 5 : Review comments addressed #

Total comments: 6

Patch Set 6 : Removed conversions that seem to be automatic #

Total comments: 4

Patch Set 7 : Removed WTF:: prefixes #

Patch Set 8 : Removing blink::, using explicit conversions in test #

Total comments: 6

Patch Set 9 : Addressed Tommi's comments #

Messages

Total messages: 55 (22 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977513004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977513004/1
4 years, 7 months ago (2016-05-13 15:18:53 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/5107) ios-device-gn on ...
4 years, 7 months ago (2016-05-13 15:21:01 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977513004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977513004/1
4 years, 7 months ago (2016-05-18 05:49:25 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/172055)
4 years, 7 months ago (2016-05-18 06:04:44 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977513004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977513004/20001
4 years, 7 months ago (2016-05-18 08:07:09 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/223824)
4 years, 7 months ago (2016-05-18 09:08:41 UTC) #12
hta - Chromium
@bashi would appreciate it if you could look at the tests in MediaStreamTrackConstraint-getConstraints and see ...
4 years, 7 months ago (2016-05-18 13:33:51 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977513004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977513004/40001
4 years, 7 months ago (2016-05-18 13:34:15 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-18 15:29:06 UTC) #20
Yuki
https://codereview.chromium.org/1977513004/diff/40001/third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl File third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl (right): https://codereview.chromium.org/1977513004/diff/40001/third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl#newcode7 third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl:7: // typedef ConstrainLongRange ConstrainLong; Can we remove these old ...
4 years, 7 months ago (2016-05-19 06:17:53 UTC) #22
hta - Chromium
sorry, shouldn't have sent messages that get CCed to so many people while still rooting ...
4 years, 7 months ago (2016-05-19 06:23:50 UTC) #23
hta - Chromium
This should now be ready for normal review.
4 years, 7 months ago (2016-05-19 08:53:37 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977513004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977513004/60001
4 years, 7 months ago (2016-05-19 12:26:03 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-19 13:48:21 UTC) #31
Yuki
LGTM. https://codereview.chromium.org/1977513004/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1977513004/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode462 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:462: const ConstrainLongRange& blinkForm = blinkUnionForm.getAsConstrainLongRange(); nit: You can ...
4 years, 7 months ago (2016-05-24 10:01:03 UTC) #32
hta - Chromium
Thanks Yuki - comments addressed! Tommi and bashi, it's on you. https://codereview.chromium.org/1977513004/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): ...
4 years, 7 months ago (2016-05-24 10:44:31 UTC) #33
bashi
https://codereview.chromium.org/1977513004/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1977513004/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode696 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:696: } else if (input.hasIdeal()) { On 2016/05/24 10:44:31, hta ...
4 years, 7 months ago (2016-05-24 10:54:18 UTC) #34
Yuki
On 2016/05/24 10:54:18, bashi1 wrote: > https://codereview.chromium.org/1977513004/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp > File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp > (right): > > https://codereview.chromium.org/1977513004/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode696 ...
4 years, 7 months ago (2016-05-24 11:00:18 UTC) #35
bashi
On 2016/05/24 11:00:18, Yuki wrote: > On 2016/05/24 10:54:18, bashi1 wrote: > > > https://codereview.chromium.org/1977513004/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp ...
4 years, 7 months ago (2016-05-24 11:11:59 UTC) #36
bashi
lgtm for union type use. Sorry for the late review...
4 years, 7 months ago (2016-05-24 11:12:29 UTC) #37
Yuki
On 2016/05/24 11:11:59, bashi1 wrote: > On 2016/05/24 11:00:18, Yuki wrote: > > On 2016/05/24 ...
4 years, 7 months ago (2016-05-24 11:18:43 UTC) #38
bashi
On 2016/05/24 11:18:43, Yuki wrote: > On 2016/05/24 11:11:59, bashi1 wrote: > > On 2016/05/24 ...
4 years, 7 months ago (2016-05-24 11:22:14 UTC) #39
tommi (sloooow) - chröme
some comments, have to go to a meeting, will continue later https://codereview.chromium.org/1977513004/diff/80001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): ...
4 years, 7 months ago (2016-05-24 13:07:29 UTC) #41
hta - Chromium
Corrected the bug number and added spec link. https://codereview.chromium.org/1977513004/diff/80001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1977513004/diff/80001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode505 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:505: webForm.setIdeal(WebVector<WebString>(blinkUnionForm.getAsStringSequence())); ...
4 years, 7 months ago (2016-05-24 13:15:29 UTC) #42
tommi (sloooow) - chröme
https://codereview.chromium.org/1977513004/diff/80001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp (right): https://codereview.chromium.org/1977513004/diff/80001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp#newcode505 third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp:505: webForm.setIdeal(WebVector<WebString>(blinkUnionForm.getAsStringSequence())); On 2016/05/24 13:15:29, hta - Chromium wrote: > ...
4 years, 7 months ago (2016-05-24 13:54:38 UTC) #43
hta - Chromium
Comments addressed. https://codereview.chromium.org/1977513004/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp (right): https://codereview.chromium.org/1977513004/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp#newcode9 third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp:9: #include "wtf/Vector.h" On 2016/05/24 13:54:38, tommi-chrömium wrote: ...
4 years, 7 months ago (2016-05-24 14:22:43 UTC) #44
hta - Chromium
Now updated the test file to use explicit conversions where it interfaces to the constraints ...
4 years, 7 months ago (2016-05-24 16:08:19 UTC) #45
tommi (sloooow) - chröme
https://codereview.chromium.org/1977513004/diff/140001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp (right): https://codereview.chromium.org/1977513004/diff/140001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp#newcode140 third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp:140: basic.facingMode.setIdeal(WebVector<WebString>(Vector<String>(1, String("foo")))); Thanks for making this explicit. It's not ...
4 years, 7 months ago (2016-05-24 21:36:41 UTC) #46
hta - Chromium
Updated according to comments. Learned something new. https://codereview.chromium.org/1977513004/diff/140001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp File third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp (right): https://codereview.chromium.org/1977513004/diff/140001/third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp#newcode140 third_party/WebKit/Source/modules/mediastream/MediaConstraintsTest.cpp:140: basic.facingMode.setIdeal(WebVector<WebString>(Vector<String>(1, String("foo")))); ...
4 years, 7 months ago (2016-05-25 07:02:41 UTC) #47
tommi (sloooow) - chröme
lgtm. thanks for the patience :)
4 years, 7 months ago (2016-05-25 08:15:29 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977513004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977513004/160001
4 years, 7 months ago (2016-05-25 08:30:43 UTC) #51
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 7 months ago (2016-05-25 10:26:55 UTC) #53
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 10:28:25 UTC) #55
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/7c0965c6e6012f9bc3fc596ba5c26866f7b9ddea
Cr-Commit-Position: refs/heads/master@{#395857}

Powered by Google App Engine
This is Rietveld 408576698