[mirotalksfu] - fix snapshot video width-height
هذا الالتزام موجود في:
@@ -1494,8 +1494,8 @@ class RoomClient {
|
|||||||
btnTs.addEventListener('click', () => {
|
btnTs.addEventListener('click', () => {
|
||||||
this.sound('snapshot');
|
this.sound('snapshot');
|
||||||
let context, canvas, width, height, dataURL;
|
let context, canvas, width, height, dataURL;
|
||||||
width = videoPlayer.offsetWidth;
|
width = videoPlayer.videoWidth;
|
||||||
height = videoPlayer.offsetHeight;
|
height = videoPlayer.videoHeight;
|
||||||
canvas = canvas || document.createElement('canvas');
|
canvas = canvas || document.createElement('canvas');
|
||||||
canvas.width = width;
|
canvas.width = width;
|
||||||
canvas.height = height;
|
canvas.height = height;
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم