Add timestampBase option for live MediaStreamTrack sources

This commit is contained in:
Vanilagy
2026-04-27 19:38:45 +02:00
parent c89e7429f7
commit 9a1b8b2602
8 changed files with 124 additions and 38 deletions
-7
View File
@@ -15,13 +15,6 @@ export abstract class Muxer {
output: Output;
mutex = new AsyncMutex();
/**
* This field is used to synchronize multiple MediaStreamTracks. They use the same time coordinate system across
* tracks, and to ensure correct audio-video sync, we must use the same offset for all of them. The reason an offset
* is needed at all is because the timestamps typically don't start at zero.
*/
firstMediaStreamTimestamp: number | null = null;
constructor(output: Output) {
this.output = output;
}