MockRTC API Reference
    Preparing search index...

    Interface MediaTrackStream

    Turns a node-datachannel media track into a real Node.js stream, complete with buffering, backpressure (up to a point - if the buffer fills up, messages are dropped), and support for piping data elsewhere.

    interface MediaTrackStream {
        get direction(): Direction;
        get isOpen(): boolean;
        get mid(): string;
        get totalBytesReceived(): number;
        get totalBytesSent(): number;
        get type(): string;
    }

    Hierarchy

    • Duplex
      • MediaTrackStream
    Index