setAudioProfile method
@detail api
@author dixing
@brief 设置音质档位。
当所选的 ByteRTCRoomProfile{@link #ByteRTCRoomProfile} 中的音频参数无法满足你的场景需求时,调用本接口切换的音质档位。
@param audioProfile 音质档位,参看 ByteRTCAudioProfileType{@link #ByteRTCAudioProfileType}
@return
- 0: 调用成功。
- < 0 : 调用失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明
@note
- 该方法在进房前后均可调用;
- 支持通话过程中动态切换音质档位。
Implementation
FutureOr<int> setAudioProfile(ByteRTCAudioProfileType audioProfile) async {
return await nativeCall('setAudioProfile:', [audioProfile.$value]);
}