setAudioProfile method
@detail api @author dixing @brief Sets the sound quality. You should choose the appropriate sound quality according to the needs of the business scenario. @param audioProfile Sound quality. See ByteRTCAudioProfileType{@link #ByteRTCAudioProfileType} @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 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(ByteRTCAudioProfileType audioProfile) async {
return await nativeCall('setAudioProfile:', [audioProfile.$value]);
}