视频编码器配置的属性。
VideoDimensions agora_gaming_rtc.VideoEncoderConfiguration.dimensions |
视频编码的分辨率 (px)。视频编码的像素,用于衡量编码质量,以长 × 宽表示,默认值为 640 × 360。用户可以自行设置分辨率: VideoDimensions 。
FRAME_RATE agora_gaming_rtc.VideoEncoderConfiguration.frameRate |
视频编码的帧率: FRAME_RATE 。默认值为 15。该值建议小于30。
int agora_gaming_rtc.VideoEncoderConfiguration.minFrameRate |
视频的最小帧率。默认值为 -1。
int agora_gaming_rtc.VideoEncoderConfiguration.bitrate |
视频编码码率,单位为 Kbps。
int agora_gaming_rtc.VideoEncoderConfiguration.minBitrate |
最低编码码率,单位为 Kbps。
SDK 会根据网络状况自动调整视频编码码率。将参数设为高于默认值可强制视频编码器输出高质量图片,但在网络状况不佳情况下可能导致网络丢包并影响视频播放的流畅度造成卡顿。因此如非对画质有特殊需求,声网建议不要修改该参数的值。
ORIENTATION_MODE agora_gaming_rtc.VideoEncoderConfiguration.orientationMode |
视频编码的方向模式: ORIENTATION_MODE 。
DEGRADATION_PREFERENCE agora_gaming_rtc.VideoEncoderConfiguration.degradationPreference |
带宽受限时,视频编码降级偏好: DEGRADATION_PREFERENCE 。
VIDEO_MIRROR_MODE_TYPE agora_gaming_rtc.VideoEncoderConfiguration.mirrorMode |