setVolume method
@detail api
@brief Adjusts the volume of the specified audio mixing, including media file mixing and PCM mixing.
@param volume The ratio of the volume to the original volume in % with overflow protection. The range is [0, 400] and the recommended range is [0, 100].
@param type See ByteRTCAudioMixingType{@link #ByteRTCAudioMixingType}.
@return
- 0: Success.
- < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
@note Call this API only when audio is mixing.
Implementation
FutureOr<int> setVolume(int volume, ByteRTCAudioMixingType type) async {
return await nativeCall('setVolume:type:', [volume, type.$value]);
}