From 14c85b194e475123ad33ebd2833b1690b7c61361 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 13 Apr 2020 08:59:11 +0200 Subject: [PATCH] Apply constraints on framerate --- assets/js/components/calls/window.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index 97ff3692..7181a80e 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -516,6 +516,13 @@ class CallWindow extends CustomEvents { }) this.mainStream = stream; + if(includeVideo) + stream.getVideoTracks()[0].applyConstraints({ + width: {max: 320}, + height: {max: 240}, + frameRate: {max: 24} + }) + // Check if the window was closed in the mean time if(!this.isOpen) return