setVolumeAll method
@detail api
@brief Sets the volume of all audio effect, including audio effect files and PCM effects.
@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].
@return
- 0: Success.
- < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
@note This API has a lower priority than setVolume:volume:{@link #ByteRTCAudioEffectPlayer#setVolume:volume}, i.e. the volume of the audio effect set by setVolume is not affected by this API.
Implementation
FutureOr<int> setVolumeAll(int volume) async {
return await nativeCall('setVolumeAll:', [volume]);
}