setAudioProfile method
@detail api @author zhangyuanyuan.0101 @brief Sets the sound quality. Call this API to change the sound quality if the audio settings in the current ChannelProfile{@link #ChannelProfile} can not meet your requirements. @param audioProfile Sound quality. See AudioProfileType{@link #AudioProfileType} @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details @note - This method can be called before and after entering the room. - Support dynamic switching of sound quality during a call.
Implementation
FutureOr<int> setAudioProfile(AudioProfileType audioProfile) async {
return await nativeCall('setAudioProfile', [audioProfile.$value]);
}