setRangeAudioCustomMode abstract method

Future<void> setRangeAudioCustomMode(
  1. ZegoRangeAudioSpeakMode speakMode,
  2. ZegoRangeAudioListenMode listenMode
)

Set range audio custom mode.

Available since: 3.3.0 Description: Can set the speak mode and listening mode respectively to control the speak and listening behavior in the world and team. Use case: The user can decide who can listen to his voice by selecting the speak mode, and can also decide whose voice to listen to by selecting the listening mode. Default value: If this interface is not called, the ZegoRangeAudioSpeakModeAll mode and ZegoRangeAudioListenModeAll mode is used by default. When to call: After initializing the range audio createRangeAudio. Related APIs: When you want to listen to sounds from the world, you need to set the sound reception range setAudioReceiveRange. When you want to sound and listen in the squad, you need to set setTeamID to join the corresponding squad. Restrictions: 1. Cannot be called with setRangeAudioMode; 2. Not compatible with versions prior to 3.3.0.

  • speakMode The range audio speak mode.
  • listenMode The range audio listening mode.

Implementation

Future<void> setRangeAudioCustomMode(
    ZegoRangeAudioSpeakMode speakMode, ZegoRangeAudioListenMode listenMode);