upgradeToVideo method

Future<void> upgradeToVideo()

Send to remote side request 'Upgrade call from audio only to audio+video'

Implementation

Future<void> upgradeToVideo() async {
  _logs?.print('Upgrade callId:$myCallId to audio+video');

  try {
    await PjsipConnectFlutter().upgradeToVideo(myCallId);
    _isUpgradingToVideo = true;
    notifyListeners();
  } on PlatformException catch (err) {
    _logs?.print(
      'Can\'t upgrade callId:$myCallId Err: ${err.code} ${err.message}',
    );
    return Future.error((err.message == null) ? err.code : err.message!);
  }
}