ios_setLowLightAdjusted method
@platform ios
@hidden(iOS)
@valid since 3.57
@detail api
@author zhoubohui
@brief 设置视频暗光增强模式。
对于光线不足、照明不均匀或背光等场景下推荐开启,可有效改善画面质量。
@param mode 默认不开启。参看 ByteRTCVideoEnhancementMode{@link #ByteRTCVideoEnhancementMode}。
@return
- 0: API 调用成功。会立即生效,但需要等待下载和检测完成后才能看到增强后的效果。
- < 0: API 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。
@note
- 开启后会影响设备性能,应根据实际需求和设备性能决定是否开启。
- 对 RTC SDK 内部采集的视频和自定义采集的视频都生效。
Implementation
Future<int?> ios_setLowLightAdjusted(
$p_i.ByteRTCVideoEnhancementMode mode) async {
$() => ($instance as $p_i.ByteRTCEngine).setLowLightAdjusted(mode);
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}