setRemoteOnHold method

Future<void> setRemoteOnHold(
  1. bool onHold
)

Implementation

Future<void> setRemoteOnHold(bool onHold) async {
  if (isRemoteOnHold == onHold) return;
  remoteOnHold = onHold;
  final transceivers = await pc!.getTransceivers();
  for (final transceiver in transceivers) {
    await transceiver.setDirection(onHold
        ? TransceiverDirection.SendOnly
        : TransceiverDirection.SendRecv);
  }
  await updateMuteStatus();
  fireCallEvent(CallEvent.kRemoteHoldUnhold);
}