mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 03:13:51 +02:00
Add proper reference count-based source disposal system
This commit is contained in:
+5
-1
@@ -35,8 +35,11 @@
|
||||
const sink = new Mediabunny.EncodedPacketSink(videoTrack);
|
||||
const firstTimestamp = await videoTrack.getFirstTimestamp();
|
||||
|
||||
console.log("FIRST", firstTimestamp)
|
||||
console.log(await videoTrack.computeDuration({ skipLiveWait: true }));
|
||||
|
||||
manifest.dispose()
|
||||
|
||||
/*
|
||||
let last = -Infinity;
|
||||
for await (const packet of sink.packets()) {
|
||||
const rel = packet.timestamp - firstTimestamp;
|
||||
@@ -48,6 +51,7 @@
|
||||
break;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
console.log("here")
|
||||
|
||||
Reference in New Issue
Block a user