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

    Interface EncodeMessage

    interface EncodeMessage {
        data: {
            codec?: "vp8" | "h264" | "vp9" | "av1" | "h265";
            hasPacketTrailer: boolean;
            isReuse: boolean;
            packetTrailer?: PacketTrailerPublishOptions;
            participantIdentity: string;
            readableStream: ReadableStream;
            trackId: string;
            writableStream: WritableStream;
        };
        kind: "decode"
        | "encode";
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    data: {
        codec?: "vp8" | "h264" | "vp9" | "av1" | "h265";
        hasPacketTrailer: boolean;
        isReuse: boolean;
        packetTrailer?: PacketTrailerPublishOptions;
        participantIdentity: string;
        readableStream: ReadableStream;
        trackId: string;
        writableStream: WritableStream;
    }

    Type Declaration

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

      Whether the published track advertises packet trailer features. When false, the cryptor skips the per-frame trailer extraction path entirely on decode.

    • isReuse: boolean
    • OptionalpacketTrailer?: PacketTrailerPublishOptions

      Packet trailer metadata to append on published video frames.

    • participantIdentity: string
    • readableStream: ReadableStream
    • trackId: string
    • writableStream: WritableStream
    kind: "decode" | "encode"