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

    Interface UpdateCodecMessage

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

    Hierarchy (View Summary)

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

    Type Declaration

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

      undefined for audio tracks

    • Optionalencrypted?: boolean

      whether the publication of a received track is marked encrypted, unused on encode

    • hasPacketTrailer: boolean
    • Optionaloperation?: "decode" | "encode"

      which cryptor the update is for, a receiver's ('decode') when omitted

    • 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"