startAudio method

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

Starts audio transmission between the local client and a conference. The startAudio 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 force sending remote participants’ streams to the conference or to the local participant. Depending on the specified participant in the participant parameter, the startAudio method starts the proper audio transmission:

  • When the specified participant is the local participant, startAudio ensures sending local participant’s audio from the local client to the conference.
  • When the specified participant is a remote participant, startAudio ensures sending remote participant’s audio from the conference to the local client. This allows the local participant to un-mute remote participants who were locally muted via the ConferenceService.stopAudio method.

Implementation

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