Jabber Guest iOS SDK version 10.6 can receive remote screen share.
If you are using the high-level CJGuestCallViewController object, then your app can view the remote screen share without any additional code changes.
If your app wants to prompt the user for confirmation before ending a call while screen share is active, add the following line of code during initialization:
myCJGuestCallViewController.confirmBeforeHangupDuringScreenShare = YES;
If you are using CJGuest call object, you can register for notifications to this call object.
To receive the notification when CJGuestCall:remotePresoActive changes, add an observer using the method you created to handle the notification as the selector, for the notification CJGuestCallRemotePresoVideoActiveNotification.
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleShareActiveStateChanged:) name:CJGuestCallRemotePresoVideoActiveNotification object:nil];
Create a method to handle these notification:
- (void)handleShareActiveStateChanged:(NSNotification *)notification
{
CJGuestCall *call = [ notification object];
if(call.remotePresoActive) {
NSLog(@"screen share is active”);
} else {
NSLog(@"screen share is no longer active”);
}
}
To receive the notification when the first frame of the screen share has arrived, add an observer using the method you created to handle the notification as the selector, for the notification CJGuestCallRemotePresoVideoStartedNotification
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleShareStarted:) name:CJGuestCallRemotePresoVideoStartedNotification object:nil];
Create a method to handle this notification:
- (void)handleShareStartedStateChanged:(NSNotification *)notification
{
NSLog(@"first frame of screen share has arrived");
}