mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Fix async race condition bug
This commit is contained in:
+6
-6
@@ -21,7 +21,7 @@
|
||||
chunked: true,
|
||||
chunkSize: 2**20
|
||||
});
|
||||
const outputFormat = new Metamuxer.OggOutputFormat();
|
||||
const outputFormat = new Metamuxer.WavOutputFormat();
|
||||
|
||||
const button = document.createElement('button');
|
||||
button.textContent = 'Cancel';
|
||||
@@ -77,10 +77,10 @@
|
||||
//width: 200,
|
||||
//height: 100,
|
||||
},
|
||||
trim: {
|
||||
start: 0,
|
||||
end: 30
|
||||
},
|
||||
//trim: {
|
||||
// start: 0,
|
||||
// end: 30
|
||||
//},
|
||||
computeProgress: true
|
||||
});
|
||||
console.log(conversion);
|
||||
@@ -108,7 +108,7 @@
|
||||
document.body.append(video);
|
||||
video.play();
|
||||
|
||||
//download(new Blob([target.buffer]), 'converted' + outputFormat.fileExtension);
|
||||
download(new Blob([target.buffer]), 'converted' + outputFormat.fileExtension);
|
||||
|
||||
function download(blob, filename) {
|
||||
const url = URL.createObjectURL(blob);
|
||||
|
||||
Reference in New Issue
Block a user