You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rohit Sharma edited this page Aug 13, 2022
·
2 revisions
In order to view the screen/content sharing from remote participant, the MediaOption used by dial or answer must be created by audioVideoScreenShare function.
letoption=MediaOption.audioVideoScreenShare(video:(localVideoView, remoteVideoView), screenShare: remoteScreenView)
webex.phone.dial("coworker@acm.com", option: option){ ret inswitch ret {case.success(let call):
call.onConnected ={
// ...
}
call.onDisconnected ={ reason in
// ...
}case.failure(let error):
// failure
}}
You can also provide a view only when the other party starts the screen sharing.
letoption=MediaOption.audioVideoScreenShare(video:(localVideoView, remoteVideoView))
webex.phone.dial("coworker@acm.com", option: option){ ret in
switch ret {
case .success(let call):
call.onConnected ={
// ...
}
call.onDisconnected ={ reason in
// ...
}
call.onMediaChanged ={ changed in
switch changed{...
case .remoteSendingScreenShare(let sending):
call.screenShareRenderView = sending ? remoteScreenView :nil}}
case .failure(let error):
// failure
}}