mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Fix chunked writing issues & drop ChunkedStreamTargetWriter
This commit is contained in:
+9
-3
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user