moqtail-ts
    Preparing search index...

    Class PlayoutBuffer

    A playout buffer that manages timed delivery of MoQT objects.

    The buffer automatically extracts capture timestamps from extension headers to determine when objects should be played out, maintaining consistent latency and dropping old GOPs when necessary.

    Usage:

    const buffer = new PlayoutBuffer(objectStream, {
    targetLatencyMs: 500,
    maxLatencyMs: 2000,
    clock
    });
    buffer.onObject = (obj) => {
    if (obj) {
    // Process the object
    } else {
    // End of stream
    }
    };
    Index

    Constructors

    Properties

    onObject: null | ((obj: null | MoqtObject) => void) = null
    options?: { clock: Clock; maxLatencyMs: number; targetLatencyMs: number }

    Methods

    • Returns { bufferSize: number; isRunning: boolean; oldestTimestamp?: number }