Unpromise many input track methods

This commit is contained in:
Vanilagy
2025-02-08 16:32:34 +01:00
parent 1d823805cf
commit cd30c9faec
10 changed files with 150 additions and 160 deletions
+2 -2
View File
@@ -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();