02-14-2019 02:29 PM - edited 03-18-2019 02:39 PM
I've been working with the Jabber Guest SDK to add support for screen sharing recently. It works well on iPhones, but it seems to be failing on iPads. Of the two I have for testing, one is an older model iPad Mini 2 and one is a relatively new iPad. Both are running iOS 12.
When screen sharing starts on the iPad, the CJGuestCallRemotePresoVideoActiveNotification notification is received, but the CJGuestCallRemotePresoVideoStartedNotification is not. It's the same exact code when run on an iPhone -- no branching or device detection at all -- and both notifications are called as expected.
After some testing, I decided to download the Jabber Guest app from the Apple App Store. The same issue exists. Screen sharing works fine on an iPhone but doesn't on an iPad. On the iPad, the loading view appears, but the shared screen never appears.
Is this a known issue? If it is, will it be fixed in a release soon? Are there any work-arounds?
Thanks,
Mattio
02-14-2019 04:52 PM
02-15-2019 06:02 AM
02-18-2019 01:00 PM
After a lot of trial and error, this seems to be related to self view.
Originally I called startSelfView on CJGuestCall within viewWillAppear. That would allow the user to see themselves before starting a call. What I found was that I needed to call [[CJGuestCall sharedInstance] stopSelfView] when the user starts a call, then call startSelfView again after the call is connected, then screen sharing works fine and the notifications are all called as expected.
I hope this helps someone else!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide