PiP (Picture in Picture) mode, provides a draggable video view and allows the user to continue using the app while on a video call.

Usage:

importVidyoCoreVidyoViewController.create(guestLink:url,onCallEnd:{[weakself]inself?.navigationController?.popViewController(animated:true)},completion:{[weakself](error,vidyoViewController)inifletvc=vidyoViewController{self?.navigationController?.pushViewController(vc,animated:true)}else{letalert=UIAlertController(title:nil,message:"An error has occurred while trying to join this call."+" \(error?.localizedDescription??"")",preferredStyle:.alert)letokAction=UIAlertAction(title:"OK",style:.default,handler:nil)alert.addAction(okAction)self?.present(alert,animated:true,completion:nil)}})