mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-25 21:39:21 +00:00
Improve framerate definition
This commit is contained in:
parent
120844bab0
commit
3724bad03f
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user