Add proper reference count-based source disposal system

This commit is contained in:
Vanilagy
2026-03-12 21:29:01 +01:00
parent e8df451bf5
commit c43ca025d9
7 changed files with 144 additions and 48 deletions
+5 -1
View File
@@ -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")