Index: content/renderer/media/media_stream_video_track.cc |
diff --git a/content/renderer/media/media_stream_video_track.cc b/content/renderer/media/media_stream_video_track.cc |
index cdfa86fb1defc60a53762f508c99387066dc27bc..cf31e29888ed623c7bfbb1fb5ef85db504de25bb 100644 |
--- a/content/renderer/media/media_stream_video_track.cc |
+++ b/content/renderer/media/media_stream_video_track.cc |
@@ -301,6 +301,14 @@ void MediaStreamVideoTrack::getSettings( |
settings.width = format->frame_size.width(); |
settings.height = format->frame_size.height(); |
} |
+ const MediaStreamDevice::CameraCalibration& calibration = |
+ source_->device_info().device.camera_calibration; |
+ if (calibration.valid) { |
+ settings.depthNear = calibration.depth_near; |
+ settings.depthFar = calibration.depth_far; |
+ settings.focalLengthX = calibration.focal_length_x; |
+ settings.focalLengthY = calibration.focal_length_y; |
+ } |
} |
// TODO(hta): Extract the real value. |
settings.deviceId = blink::WebString("video device ID"); |