Screen Share

Remote Screen Share

Jabber Guest iOS SDK version 10.6.1 can receive remote screen share.

CJGuestCallViewController

If you are using the high-level CJGuestCallViewController object, then your app can view the remote screen share without any additional code changes.

Using CJGuest call object

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");
}