setAudioMixingVolume method

Future<void> setAudioMixingVolume(
  1. int volume,
  2. ZegoVolumeType type
)

Sets the audio mixing output volume for either local playback or the stream to published.

Available since: 1.9.0 Description: After enabling the audio mixing function through enableAudioMixing, the developer can use this function to set the volume of the mixing audio to be mixed to SDK. Use case: When developers need to mix their own songs, sound effects or other audio data into the publishing stream, and want to adjust the volume of the mixing audio, you can use this function. When to call: It needs to be called after createEngine. Caution: This function can individually set the mixing audio volume of the local playback or the remote playback. Restrictions: None.

  • volume The audio mixing volume, range from 0 to 200, 100 as default.
  • type Local playback volume / Remote playback volume

Implementation

Future<void> setAudioMixingVolume(int volume, ZegoVolumeType type) async {
  return await ZegoExpressImpl.instance.setAudioMixingVolume(volume, type);
}