disableAlphaChannelVideoEncode method
@valid since 3.58
@detail api
@hiddensdk(audiosdk)
@author zhuhongshuyu
@brief 关闭外部采集视频帧的 Alpha 通道编码功能。
@return 方法调用结果:
- 0: 调用成功。
- < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明。
@note 该接口须在停止发布视频流之后调用。
Implementation
Future<int?> disableAlphaChannelVideoEncode() async {
$a() => ($instance as $p_a.RTCEngine).disableAlphaChannelVideoEncode();
$i() => ($instance as $p_i.ByteRTCEngine).disableAlphaChannelVideoEncode();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}