setVideoEncoderConfiguration 所有参数
时间: 2024-01-19 08:03:51 浏览: 21
setVideoEncoderConfiguration 是 Agora SDK 中用于设置视频编码器配置的方法,其所有参数如下:
- VideoEncoderConfiguration 是一个结构体,其中包含以下参数:
- dimensions: VideoDimensions 类型,视频的宽高(以像素为单位),例如 640x480。
- frameRate: int 类型,视频的帧率。
- bitrate: int 类型,视频的码率(bps)。
- orientationMode: VideoOutputOrientationMode 类型,输出视频的方向模式。
- degradationPreference: DegradationPreference 类型,视频编码器的偏好设置。
- VideoDimensions 是一个结构体,其中包含以下参数:
- width: int 类型,视频的宽度(以像素为单位)。
- height: int 类型,视频的高度(以像素为单位)。
- VideoOutputOrientationMode 是一个枚举类型,表示输出视频的方向模式。它有以下几个取值:
- ORIENTATION_MODE_ADAPTIVE:自适应模式。
- ORIENTATION_MODE_FIXED_LANDSCAPE:横屏模式。
- ORIENTATION_MODE_FIXED_PORTRAIT:竖屏模式。
- DegradationPreference 是一个枚举类型,表示视频编码器的偏好设置。它有以下几个取值:
- MAINTAIN_QUALITY:保持视频质量。
- MAINTAIN_FRAMERATE:保持视频帧率。
- MAINTAIN_BALANCED:保持视频质量和帧率的平衡。
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![dll](https://img-home.csdnimg.cn/images/20210720083646.png)
![md](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![m](https://img-home.csdnimg.cn/images/20210720083646.png)