enableAudioEncoding method
@hidden for internal use only @region 自定义音频采集渲染 @brief 是否使用sdk音频编码功能。 @param enable 是否使用sdk音频编码功能。 true: 打开音频编码(默认) false: 关闭音频编码直接转推。 @note - 在pushExternalEncodedAudioFrame{@link #RTCEngine#pushExternalEncodedAudioFrame}之前调用。
Implementation
Future enableAudioEncoding(bool enable) async {
$a() => ($instance as $p_a.RTCEngine).enableAudioEncoding(enable);
$i() => ($instance as $p_i.ByteRTCEngine).enableAudioEncoding(enable);
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}