Interface AudioEncoder
interface AudioEncoder {
encodeQueueSize: number;
state: CodecState;
close(): void;
configure(config: AudioEncoderConfig): void;
encode(data: AudioData): void;
flush(): Promise<void>;
reset(): void;
}
encodeQueueSize: number;
state: CodecState;
close(): void;
configure(config: AudioEncoderConfig): void;
encode(data: AudioData): void;
flush(): Promise<void>;
reset(): void;
}
Methods
close
configure
- configure(config): void
Parameters
- config: AudioEncoderConfig
Returns void
encode
- encode(data): void
Parameters
- data: AudioData
Returns void
Available only in secure contexts.