Interface AudioEncoder

    Available only in secure contexts.

    interface AudioEncoder {
        encodeQueueSize: number;
        state: CodecState;
        close(): void;
        configure(config: AudioEncoderConfig): void;
        encode(data: AudioData): void;
        flush(): Promise<void>;
        reset(): void;
    }

    Properties

    encodeQueueSize: number
    state: CodecState

    Methods

    • Returns void

    • Parameters

      Returns void

    • Returns void