acceptVideoUpgrade method
Accept request 'upgrade to video' received from remote side. 'withVideo=false' - means don't allow to start video
Implementation
Future<void> acceptVideoUpgrade([bool withVideo = true]) async {
_logs?.print('AcceptVideoUpgrade callId:$myCallId withVideo:$withVideo');
try {
await PjsipConnectFlutter().acceptVideoUpgrade(myCallId, withVideo);
_hasVideoUpgradeRequest = false;
notifyListeners();
} on PlatformException catch (err) {
_logs?.print(
'Can\'t accept video upgrade callId:$myCallId Err: ${err.code} ${err.message}',
);
return Future.error((err.message == null) ? err.code : err.message!);
}
}