muteAllRemoteAudioStreamsEx abstract method
Future<void>
muteAllRemoteAudioStreamsEx({
- required bool mute,
- required RtcConnection connection,
Stops or resumes subscribing to all remote users' audio streams.
After this method is called successfully, the local user stops or resumes subscribing to remote users' audio streams, including streams from users who join the channel after this method is called. You must call this method after joining a channel. To set the default behavior to not subscribe to remote audio streams before joining, set autoSubscribeAudio to false when calling joinChannel.
muteWhether to stop subscribing to all remote users' audio streams: true : Stop subscribing to all remote users' audio streams. false : (Default) Subscribe to all remote users' audio streams.connectionConnection information. See RtcConnection.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> muteAllRemoteAudioStreamsEx(
{required bool mute, required RtcConnection connection});