setRangeAudioMode abstract method
- ZegoRangeAudioMode mode
Set range audio mode.
Available since: 2.11.0
Description: The audio mode can be set to World
mode or Team
mode.
Use case: The user can choose to chat with everyone in the World
mode (with distance limitation), or to communicate within the team in the Team
mode (without distance limitation).
Default value: If this function is not called, the World
mode is used by default.
When to call: After initializing the range audio createRangeAudio
.
Related APIs: In the World
mode, you can set the sound receiving range setAudioReceiveRange, in the Team
mode, you need to set setTeamID to join the corresponding team to hear the voice in the team.
mode
The range audio mode.
Implementation
Future<void> setRangeAudioMode(ZegoRangeAudioMode mode);