mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Improve framerate definition
This commit is contained in:
parent
120844bab0
commit
3724bad03f
@ -993,7 +993,7 @@ class CallWindow extends CustomEvents {
|
|||||||
|
|
||||||
else {
|
else {
|
||||||
canvas.drawImage(videoTarget, 0, 0, videoTarget.width, videoTarget.height);
|
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