hold method
Toggle hold of this call (hold means stop send/receive audio/video RTP streams)
Implementation
Future<void> hold() async {
_logs?.print('Hold callId:$myCallId');
try {
await PjsipConnectFlutter().hold(myCallId);
_state = CallState.holding;
notifyListeners();
} on PlatformException catch (err) {
_logs?.print(
'Can\'t hold callId:$myCallId Err: ${err.code} ${err.message}',
);
return Future.error((err.message == null) ? err.code : err.message!);
}
}