setRemoteOnHold method
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);
}