INNER CODE UNIT · TypeScript
VideoEncoderConfiguration
AgoraIO-Extensions/react-native-agora · src/AgoraBase.ts:1503
export class VideoEncoderConfiguration {
/**
* Video codec type. See VideoCodecType.
*/
codecType?: VideoCodecType;
/**
* Resolution (px) of the video encoding. See VideoDimensions. This parameter is used to measure encoding quality, represented as height × width. Default is 960 × 540. You can customize the resolution.
*/
dimensions?: VideoDimensions;
/**
* Frame rate (fps) of the video encoding. Default is 15. See FrameRate.
*/
frameRate?: number;
/**
* Bitrate of the video encoding in Kbps. You do not need to set this parameter; keep the default value STANDARD_BITRATE. The SDK automatically matches the optimal bitrate based on your configured resolution and frame rate. For the mapping between resolution and frame rate, see [Video Profile](https://doc.shengwang.cn/doc/rtc/rn/basic-features/video-profile#%E8%A7%86%E9%A2%91%E5%B1%9E%E6%80%A7%E5%8F%82%E8%80%83).
* STANDARD_BITRATE (0): (Default) Standard bitrate mode.
* COMPATIBLE_BITRATE (-1): Compatible bitrate mode. In general, we recommend not using this value.
*/