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

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

Issue 2037573004: Add video width and height to getSettings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 f14545e8ddcee6f96be0c421713d53bd7ecf1398..3ead30dcc72f9c961f76aa28af1515e4818e895e 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp
@@ -188,6 +188,12 @@ void MediaStreamTrack::getSettings(MediaTrackSettings& settings)
if (platformSettings.hasFrameRate()) {
settings.setFrameRate(platformSettings.frameRate);
}
+ if (platformSettings.hasWidth()) {
+ settings.setWidth(platformSettings.width);
+ }
+ if (platformSettings.hasHeight()) {
+ settings.setHeight(platformSettings.height);
+ }
settings.setDeviceId(platformSettings.deviceId);
}

Powered by Google App Engine
This is Rietveld 408576698