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

Issue 2664673002: Media Capture Depth Stream Extensions API: videoKind settings and constraint. (Closed)

Created:
3 years, 10 months ago by aleksandar.stojiljkovic
Modified:
3 years, 10 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, chfremer+watch_chromium.org, eric.carlson_apple.com, kinuko+watch, Srirama, miu+watch_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, blink-reviews, xjz+watch_chromium.org, blink-reviews-api_chromium.org, mcasas+watch+mediastream_chromium.org, mlamouri+watch-content_chromium.org, imcheng+watch_chromium.org, jasonroberts+watch_google.com, feature-media-reviews_chromium.org, tommyw+watchlist_chromium.org, mcasas+watch+vc_chromium.org, haraken, mlamouri+watch-blink_chromium.org, avayvod+watch_chromium.org, isheriff+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media Capture Depth Stream Extensions API: videoKind settings and constraint. This enables selection of depth stream on Linux; both color and depth device have the same Label and it is not possible to apart depth from color stream (https://crbug.com/686756). Under experimental MediaCaptureDepth feature, implements [1]: partial dictionary MediaTrackConstraintSet { ConstrainDOMString videoKind; }; and constraining logic applying it to MediaStreamTrack object. partial dictionary MediaTrackSettings { DOMString videoKind; }; This patch is verified to work with fake capture device and RealSense SR300. [1] https://w3c.github.io/mediacapture-depth/#mediatracksettings-dictionary BUG=686756, 616098 Review-Url: https://codereview.chromium.org/2664673002 Cr-Commit-Position: refs/heads/master@{#450335} Committed: https://chromium.googlesource.com/chromium/src/+/28ea8a96d0788781f3ef06053c921d8e740a30ef

Patch Set 1 #

Total comments: 17

Patch Set 2 : Review #14 & #15 fixes. kinuko@, guidou@, thanks. #

Patch Set 3 : Rebase to http://crrev.com/2669243004/ simplified the patch. Thanks guidou@chromium.org #

Total comments: 2

Patch Set 4 : videoKind string constants removed from header. #

Total comments: 2

Patch Set 5 : GetVideoKindForFormat moved to utility. thanks guidou@. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -25 lines) Patch
M content/browser/webrtc/webrtc_depth_capture_browsertest.cc View 1 2 2 chunks +39 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_constraints_util_video_source.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_constraints_util_video_source.cc View 1 2 3 4 5 chunks +21 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_constraints_util_video_source_unittest.cc View 1 2 4 chunks +36 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_video_source.cc View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M content/renderer/media/media_stream_video_track.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M content/test/data/media/depth_stream_test_utilities.js View 1 chunk +9 lines, -0 lines 0 comments Download
M content/test/data/media/getusermedia-depth-capture.html View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp View 1 2 4 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl View 1 2 1 chunk +10 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaTrackSettings.idl View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaTrackSupportedConstraints.idl View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebMediaConstraints.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaConstraints.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMediaStreamTrack.h View 1 2 2 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 38 (22 generated)
aleksandar.stojiljkovic
mcasas@chromium.org: PTAL at content/renderer/media guidou@chromium.org: PTAL at content/browser third_party/WebKit/Source/modules/mediastream kinuko@chromium.org: PTAL at third_party/WebKit/Source/platform/ third_party/WebKit/public/platform/ content/common/
3 years, 10 months ago (2017-02-07 04:32:45 UTC) #12
kinuko
> https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=kinuko@chromium.org: PTAL at > third_party/WebKit/Source/platform/ > third_party/WebKit/public/platform/ > content/common/ lgtm
3 years, 10 months ago (2017-02-07 04:54:24 UTC) #13
kinuko
some nits https://codereview.chromium.org/2664673002/diff/60001/content/renderer/media/media_stream_video_source.cc File content/renderer/media/media_stream_video_source.cc (right): https://codereview.chromium.org/2664673002/diff/60001/content/renderer/media/media_stream_video_source.cc#newcode43 content/renderer/media/media_stream_video_source.cc:43: : WebString::fromUTF8(kVideoKindColor); nit: fromASCII() would be enough ...
3 years, 10 months ago (2017-02-07 04:55:49 UTC) #14
Guido Urdaneta
https://codereview.chromium.org/2664673002/diff/60001/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/2664673002/diff/60001/content/browser/renderer_host/media/media_stream_manager.cc#newcode837 content/browser/renderer_host/media/media_stream_manager.cc:837: if (request->controls.video.device_id.empty() && There is a CL (http://crrev.com/2669243004/) close ...
3 years, 10 months ago (2017-02-07 10:26:04 UTC) #15
Guido Urdaneta
+hta
3 years, 10 months ago (2017-02-07 10:45:56 UTC) #17
aleksandar.stojiljkovic
PS #2 : Review #14 & #15 fixes. kinuko@, guidou@, thanks. Fixed, waiting for CL ...
3 years, 10 months ago (2017-02-07 11:33:49 UTC) #18
aleksandar.stojiljkovic
PS#3: Rebase to http://crrev.com/2669243004/ simplified the patch. guidou@chromium.org, PTAL. Thanks. https://codereview.chromium.org/2664673002/diff/60001/content/renderer/media/media_stream_video_source.cc File content/renderer/media/media_stream_video_source.cc (right): https://codereview.chromium.org/2664673002/diff/60001/content/renderer/media/media_stream_video_source.cc#newcode37 ...
3 years, 10 months ago (2017-02-09 21:39:25 UTC) #21
Guido Urdaneta
https://codereview.chromium.org/2664673002/diff/100001/content/renderer/media/media_stream_video_track.h File content/renderer/media/media_stream_video_track.h (right): https://codereview.chromium.org/2664673002/diff/100001/content/renderer/media/media_stream_video_track.h#newcode24 content/renderer/media/media_stream_video_track.h:24: // VideoKind enum values. https://w3c.github.io/mediacapture-depth. These are used only ...
3 years, 10 months ago (2017-02-10 12:45:21 UTC) #24
aleksandar.stojiljkovic
PS#4 : videoKind string constants removed from header. https://codereview.chromium.org/2664673002/diff/100001/content/renderer/media/media_stream_video_track.h File content/renderer/media/media_stream_video_track.h (right): https://codereview.chromium.org/2664673002/diff/100001/content/renderer/media/media_stream_video_track.h#newcode24 content/renderer/media/media_stream_video_track.h:24: // ...
3 years, 10 months ago (2017-02-10 15:06:51 UTC) #25
Guido Urdaneta
lgtm https://codereview.chromium.org/2664673002/diff/120001/content/renderer/media/media_stream_video_track.cc File content/renderer/media/media_stream_video_track.cc (right): https://codereview.chromium.org/2664673002/diff/120001/content/renderer/media/media_stream_video_track.cc#newcode20 content/renderer/media/media_stream_video_track.cc:20: blink::WebString GetVideoKindForFormat( nit: I still would prefer the ...
3 years, 10 months ago (2017-02-10 15:36:17 UTC) #26
aleksandar.stojiljkovic
PS#5 : GetVideoKindForFormat moved to utility. thanks guidou@. Done as you suggested. In previous patch ...
3 years, 10 months ago (2017-02-10 16:29:23 UTC) #27
Guido Urdaneta
still lgtm > I trust that you have reviewed all the code under content. > ...
3 years, 10 months ago (2017-02-10 16:38:27 UTC) #28
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/2664673002/140001
3 years, 10 months ago (2017-02-14 07:08:07 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/382115)
3 years, 10 months ago (2017-02-14 09:15:58 UTC) #33
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/2664673002/140001
3 years, 10 months ago (2017-02-14 11:29:06 UTC) #35
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 13:32:52 UTC) #38
Message was sent while issue was closed.
Committed patchset #5 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/28ea8a96d0788781f3ef06053c92...

Powered by Google App Engine
This is Rietveld 408576698