Fix sample closing before it reaches the custom encoder

This commit is contained in:
Vanilagy
2025-08-12 15:36:17 +02:00
parent 7e89511ca6
commit 7e546c2cc7
6 changed files with 36 additions and 34 deletions
+4 -4
View File
@@ -24,7 +24,7 @@
chunked: true,
chunkSize: 2**20
});
const outputFormat = new Mediabunny.Mp4OutputFormat({});
const outputFormat = new Mediabunny.Mp3OutputFormat({});
const button = document.createElement('button');
button.textContent = 'Cancel';
@@ -41,7 +41,7 @@
target
}),
audio: {
discard: true,
//discard: true,
//codec: 'opus',
//bitrate: 128000,
//numberOfChannels: 1,
@@ -94,8 +94,8 @@
//height: 100,
}),
trim: {
start: 0,
end: 20
//start: 0,
//end: 20
},
});
console.log(conversion);