From a3f19f6f08543c94ac7cf861aed8a05f1b63fea9 Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Thu, 2 Jan 2025 23:31:06 +0100 Subject: [PATCH] Oops --- dev/player.html | 4 ++-- todo.txt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dev/player.html b/dev/player.html index 9c2e4a3..bc930c2 100644 --- a/dev/player.html +++ b/dev/player.html @@ -43,10 +43,10 @@ console.log(await input.getMimeType()) let videoTrack = await input.getPrimaryVideoTrack(); let audioTrack = await input.getPrimaryAudioTrack(); -if (!(await videoTrack.canDecode())) { +if (!(await videoTrack?.canDecode())) { videoTrack = null; } -if (!(await audioTrack.canDecode())) { +if (!(await audioTrack?.canDecode())) { audioTrack = null; } diff --git a/todo.txt b/todo.txt index fc2f829..2ed9e18 100644 --- a/todo.txt +++ b/todo.txt @@ -2,4 +2,5 @@ - Throw if edit list detected - Add the new audio codecs to muxers - Mov muxer!!! Only mov can hold PCM audio, MP4 cannot -- Metadata methods for computing average fps and bitrate \ No newline at end of file +- Metadata methods for computing average fps and bitrate +- A stream source?? Or like a callback-driven source \ No newline at end of file