mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Add some more argument validation
This commit is contained in:
+2
-2
@@ -48,8 +48,8 @@ let videoRotation = 0;
|
||||
if (!videoTrack) {
|
||||
canvas.style.display = 'none';
|
||||
} else {
|
||||
canvas.width = await videoTrack.getRotatedWidth();
|
||||
canvas.height = await videoTrack.getRotatedHeight();
|
||||
canvas.width = await videoTrack.getDisplayWidth();
|
||||
canvas.height = await videoTrack.getDisplayHeight();
|
||||
}
|
||||
|
||||
const totalDuration = await input.computeDuration();
|
||||
|
||||
Reference in New Issue
Block a user