mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Unpromise many input track methods
This commit is contained in:
+2
-2
@@ -60,8 +60,8 @@ let videoRotation = 0;
|
||||
if (!videoTrack) {
|
||||
canvas.style.display = 'none';
|
||||
} else {
|
||||
canvas.width = await videoTrack.getDisplayWidth();
|
||||
canvas.height = await videoTrack.getDisplayHeight();
|
||||
canvas.width = videoTrack.displayWidth;
|
||||
canvas.height = videoTrack.displayHeight;
|
||||
}
|
||||
|
||||
const totalDuration = await input.computeDuration();
|
||||
|
||||
Reference in New Issue
Block a user