LiveKit JS Client SDK - v2.22.2
    Preparing search index...

    Interface UpdateCodecMessage

    interface UpdateCodecMessage {
        data: {
            codec?: "vp8" | "h264" | "vp9" | "av1" | "h265";
            hasPacketTrailer: boolean;
            participantIdentity: string;
            previousTrackId?: string;
            trackId: string;
        };
        kind: "updateCodec";
    }

    Hierarchy (View Summary)

    Index
    data: {
        codec?: "vp8" | "h264" | "vp9" | "av1" | "h265";
        hasPacketTrailer: boolean;
        participantIdentity: string;
        previousTrackId?: string;
        trackId: string;
    }

    Type Declaration

    • Optionalcodec?: "vp8" | "h264" | "vp9" | "av1" | "h265"

      undefined for audio tracks

    • hasPacketTrailer: boolean
    • participantIdentity: string
    • OptionalpreviousTrackId?: string

      trackId this receiver's pipeline was previously set up for, set when a transceiver gets reused for a new track. Lets the worker find the cryptor that still owns the (already transferred) encoded streams and re-point it, rather than creating a fresh cryptor with no pipeline at all.

    • trackId: string
    kind: "updateCodec"