-
Notifications
You must be signed in to change notification settings - Fork 31
Screen Sharing
adamrangs edited this page Aug 8, 2022
·
1 revision
Webex SDK provide a function to share the whole screen of your Android mobile device in a call, including both p2p call and group call.
activeCall.startSharing(r -> Ln.d("startSharing result: " + r));
NOTE:
- If the call is not in CONNECTED status or you have already shared screen in this call, the callback of startSharing() method will receive an error.
- At the first time of request to share screen, Android system will popup the following alert dialog to warn user the whole screen will be captured. Once the "Don't show again" box is checked, it will no longer be shown again.
activeCall.stopSharing(r -> Ln.d("stopSharing result: " + r));
After successfully start/stop screen sharing, the SendingSharingEvent will be sent out through CallObserver.onMediaChanged() callback, whose isSending() method will return corresponding true/false.
boolean isSharing = activeCall.isSendingSharing();