diff --git a/src/utils/webrtc/simplewebrtc/localmedia.js b/src/utils/webrtc/simplewebrtc/localmedia.js index 3bb273081d1..7e04d210b86 100644 --- a/src/utils/webrtc/simplewebrtc/localmedia.js +++ b/src/utils/webrtc/simplewebrtc/localmedia.js @@ -143,6 +143,12 @@ LocalMedia.prototype.isLocalMediaActive = function() { * resolution, so if the camera does not have such resolution it will still * return the highest resolution available without failing. * + * A high frame rate needs to be requested too, as some cameras offer high + * resolution but with low frame rates, so Chromium could end providing a laggy + * high resolution video. If the frame rate is requested too then Chromium needs + * to balance all the constraints and thus provide a video without the highest + * resolution but with an acceptable frame rate. + * * @param {Object} constraints the constraints to be adjusted */ LocalMedia.prototype._adjustVideoConstraintsForChromium = function(constraints) { @@ -168,6 +174,7 @@ LocalMedia.prototype._adjustVideoConstraintsForChromium = function(constraints) constraints.video.width = 1920 constraints.video.height = 1200 + constraints.video.frameRate = 60 } LocalMedia.prototype.start = function(mediaConstraints, cb, context) {