mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Improve lookup algorithm to handle misleading cue points, fix cluster start timestamp in Matroska muxer, improve cue points in Matroska muxer, & other misc improvements
This commit is contained in:
+15
-2
@@ -41,10 +41,23 @@ const input = new Metamuxer.Input({
|
||||
source
|
||||
});
|
||||
|
||||
console.log(await input.getMimeType())
|
||||
//console.log(await input.getMimeType())
|
||||
|
||||
let videoTrack = await input.getPrimaryVideoTrack();
|
||||
let audioTrack = await input.getPrimaryAudioTrack();
|
||||
let audioTrack = null && await input.getPrimaryAudioTrack();
|
||||
|
||||
|
||||
const sink = new Metamuxer.EncodedVideoSampleSink(videoTrack);
|
||||
console.log(await sink.getSample(4.93))
|
||||
await new Promise(() => {});
|
||||
|
||||
for await (const sample of sink.samples()) {
|
||||
console.log(sample);
|
||||
await new Promise(resolve => setTimeout(resolve, 100));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//console.log(await videoTrack.computeDuration());
|
||||
//await new Promise(() => {});
|
||||
|
||||
Reference in New Issue
Block a user