mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-10-31 10:14:51 +00:00 
			
		
		
		
	Improve framerate definition
This commit is contained in:
		| @@ -993,7 +993,7 @@ class CallWindow extends CustomEvents { | ||||
| 						 | ||||
| 						else { | ||||
| 							canvas.drawImage(videoTarget, 0, 0, videoTarget.width, videoTarget.height); | ||||
| 							await new Promise((res, rej) => setTimeout(() => res(), 40)); | ||||
| 							await new Promise((res, rej) => setTimeout(() => res(), 1000 / videoTrack.getSettings().frameRate)); | ||||
| 						} | ||||
| 					} | ||||
| 				} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user