mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Apply constraints on framerate
This commit is contained in:
		@@ -516,6 +516,13 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
		})
 | 
							})
 | 
				
			||||||
		this.mainStream = stream;
 | 
							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
 | 
							// Check if the window was closed in the mean time
 | 
				
			||||||
		if(!this.isOpen)
 | 
							if(!this.isOpen)
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user