stopAudio method

  1. @Deprecated('This method is not supported in SDK 3.7 and replaced with the stop methods that are available in the [LocalAudio](./../LocalAudio-class.html) and [RemoteAudio](./../RemoteAudio-class.html) models.')
Future<void> stopAudio(
  1. Participant participant
)

Stops audio transmission between the local client and a conference. The stopAudio method impacts only the audio streams that the local participant sends and receives; the method does not impact the audio transmission between remote participants and a conference and does not allow the local participant to stop sending remote participants’ streams to the conference. Depending on the specified participant in the participant parameter, the stopAudio method stops the proper audio transmission:

  • When the specified participant is the local participant, stopAudio stops sending local participant’s audio from the local client to the conference.
  • When the specified participant is a remote participant, stopAudio stops sending remote participant’s audio from the conference to the local client. This allows the local participant to locally mute remote participants.

Implementation

@Deprecated(
    'This method is not supported in SDK 3.7 and replaced with the stop methods that are available in the [LocalAudio](./../LocalAudio-class.html) and [RemoteAudio](./../RemoteAudio-class.html) models.')
Future<void> stopAudio(Participant participant) async {
  await _methodChannel.invokeMethod<void>("stopAudio", participant.toJson());
  return Future.value();
}