enableAudioPropertiesReport method

FutureOr<int> enableAudioPropertiesReport(
  1. ByteRTCAudioPropertiesConfig config
)

@detail api @author wangjunzheng @brief Enables audio information prompts. After that, you will receive rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport}, rtcEngine:onRemoteAudioPropertiesReport:totalRemoteVolume:{@link #ByteRTCEngineDelegate#rtcEngine:onRemoteAudioPropertiesReport:totalRemoteVolume}, and rtcEngine:onActiveSpeaker:uid:{@link #ByteRTCEngineDelegate#rtcEngine:onActiveSpeaker:uid}. @param config See ByteRTCAudioPropertiesConfig{@link #ByteRTCAudioPropertiesConfig}. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details

Implementation

FutureOr<int> enableAudioPropertiesReport(
    ByteRTCAudioPropertiesConfig config) async {
  return await nativeCall('enableAudioPropertiesReport:', [config]);
}