mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Oops
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user