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

Unified Diff: third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp

Issue 2664673002: Media Capture Depth Stream Extensions API: videoKind settings and constraint. (Closed)
Patch Set: GetVideoKindForFormat moved to utility. thanks guidou@. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
index 85aba8f625725fd49c5775a991db0c270db4a030..af29140115b68b10295148468adb1945bba6a2ba 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
@@ -230,6 +230,8 @@ void MediaStreamTrack::getSettings(MediaTrackSettings& settings) {
}
if (RuntimeEnabledFeatures::mediaCaptureDepthEnabled() &&
m_component->source()->type() == MediaStreamSource::TypeVideo) {
+ if (platformSettings.hasVideoKind())
+ settings.setVideoKind(platformSettings.videoKind);
if (platformSettings.hasDepthNear())
settings.setDepthNear(platformSettings.depthNear);
if (platformSettings.hasDepthFar())

Powered by Google App Engine
This is Rietveld 408576698