setAudioMixingVolume abstract method
- @Deprecated('Deprecated since v3.54.1, use RTCAudioEffectPlayer.setVolume and RTCMediaPlayer.setVolume instead')
- required int mixId,
- required int volume,
- required AudioMixingType type,
Adjusts the mixing volume, including audio files and PCM data.
volume
is the ratio of the mixing volume to the original volume. The range is [0, 400]
. The recommended range is [0, 100]
.
- 0: Mute
- 100: Original volume(default)
- 400: Maximum volume (with overflow protection)
Make sure you have called RTCAudioMixingManager.preloadAudioMixing or RTCAudioMixingManager.startAudioMixing before calling this API.
Implementation
@Deprecated(
'Deprecated since v3.54.1, use RTCAudioEffectPlayer.setVolume and RTCMediaPlayer.setVolume instead')
Future<void> setAudioMixingVolume({
required int mixId,
required int volume,
required AudioMixingType type,
});