[mirotalksfu] - fix snapshot video width-height

هذا الالتزام موجود في:
Miroslav Pejic
2022-01-23 16:37:08 +01:00
الأصل e35c93ea48
التزام cd27b136e4

عرض الملف

@@ -1494,8 +1494,8 @@ class RoomClient {
btnTs.addEventListener('click', () => {
this.sound('snapshot');
let context, canvas, width, height, dataURL;
width = videoPlayer.offsetWidth;
height = videoPlayer.offsetHeight;
width = videoPlayer.videoWidth;
height = videoPlayer.videoHeight;
canvas = canvas || document.createElement('canvas');
canvas.width = width;
canvas.height = height;