enableAudioPropertiesReport method
@detail api @author wangjunzheng @brief 启用音频信息提示。开启提示后,你可以收到 onLocalAudioPropertiesReport{@link #IRTCEngineEventHandler#onLocalAudioPropertiesReport},onRemoteAudioPropertiesReport{@link #IRTCEngineEventHandler#onRemoteAudioPropertiesReport} 和 onActiveSpeaker{@link #IRTCEngineEventHandler#onActiveSpeaker}。 @param config 详见 AudioPropertiesConfig{@link #AudioPropertiesConfig} @return - 0: 调用成功。 - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明
Implementation
Future<int?> enableAudioPropertiesReport(AudioPropertiesConfig config) async {
$a() => ($instance as $p_a.RTCEngine).enableAudioPropertiesReport(
unpackObject<$p_a.AudioPropertiesConfig>(config));
$i() => ($instance as $p_i.ByteRTCEngine).enableAudioPropertiesReport(
unpackObject<$p_i.ByteRTCAudioPropertiesConfig>(config));
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}