Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    interface CodecSelectionInput {
        preferredCodec: VideoCodecOption;
        containerMode: "mp4" | "webm" | "mkv";
        encOpts: { width: number; height: number; bitrate: number };
        canEncodeVideo: (
            codec: MediabunnyCodec,
            opts: { width: number; height: number; bitrate: number },
        ) => Promise<boolean>;
    }
    Index
    preferredCodec: VideoCodecOption

    User-selected codec from the recording panel UI.

    containerMode: "mp4" | "webm" | "mkv"

    Output container mode.

    encOpts: { width: number; height: number; bitrate: number }

    Encoder options shape required by mediabunny's canEncodeVideo.

    canEncodeVideo: (
        codec: MediabunnyCodec,
        opts: { width: number; height: number; bitrate: number },
    ) => Promise<boolean>

    Async predicate equivalent to mediabunny's canEncodeVideo. Caller supplies the import so this module stays free of mediabunny coupling and is unit-testable with a stub.