mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Apply constraints on framerate
This commit is contained in:
parent
cff2cdada2
commit
14c85b194e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user