Improve framerate definition

This commit is contained in:
Pierre HUBERT 2021-01-30 20:16:50 +01:00
parent 120844bab0
commit 3724bad03f

View File

@ -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));
}
}
}