Apply constraints on framerate

This commit is contained in:
Pierre HUBERT 2020-04-13 08:59:11 +02:00
parent cff2cdada2
commit 14c85b194e

View File

@ -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