setVolume abstract method

Future<int> setVolume(
  1. int volume
)

Set custom audio source volume.

Available since: 3.25.0 Description: Set the volume of the custom audio source. Use cases: Typically used in scenarios that require switching between different audio capture sources. When to call: After the custom audio source is created by createCustomAudioSource. Restrictions: The volume range is 0 ~ 100. Caution: ZegoCustomAudioSource can only be used as a mix source, not as the main capture source.

  • volume Volume, the range is 0 ~ 100.
  • Returns The result of the API call.

Implementation

Future<int> setVolume(int volume);