Fix chunked writing issues & drop ChunkedStreamTargetWriter

This commit is contained in:
Vanilagy
2025-03-26 21:35:19 +01:00
parent ceb2528014
commit 95cc8beb06
3 changed files with 78 additions and 112 deletions
+9 -3
View File
@@ -15,9 +15,15 @@
const file = fileInput.files[0];
const source = new Metamuxer.BlobSource(file);
const target = new Metamuxer.BufferTarget();
const target = new Metamuxer.StreamTarget(new WritableStream({
write: console.log
}), {
chunked: true,
chunkSize: 2**20
});
const outputFormat = new Metamuxer.OggOutputFormat({
onPage: console.log
//streamable: true
//fastStart: 'fragmented'
});
const button = document.createElement('button');
@@ -75,7 +81,7 @@
},
trim: {
start: 0,
end: 60
//end: 60
},
computeProgress: true
});