I have implemented content sharing using Amazon Chime's SDK for ios. The screen is shared when I invoke the setContentSharing(true) but there is no video tile added to my application. When I navigate to some other screen after turning screen sharing on and come back to the original then only screen is shared. Here Is the function I am using to invoke contentSharing
RCT_EXPORT_METHOD(setContentSharing:(BOOL)isOn)
{
if (meetingSession == nil) {
return;
}
if (@available(iOS 11.0, *)) {
if (isOn)
{
MeetingObservers* observerContent = [[MeetingObservers alloc] initWithBridge:self logger:logger];
[meetingSession.audioVideo addContentShareObserverWithObserver:observerContent];
[meetingSession.audioVideo addVideoTileObserverWithObserver:observerContent];
contentShareSource = [[ContentShareSource alloc] init];
contentShareSource.videoSource = inAppScreenCaptureSource;
[inAppScreenCaptureSource start];
[meetingSession.audioVideo startContentShareWithSource:contentShareSource];
}
else
{
[inAppScreenCaptureSource stop];
[meetingSession.audioVideo stopContentShare];
[self sendEventWithName:kEventOnScreenSharingStop body:nil];
}
}
}
I have tried implementing content sharing in my IOS app but the video stream for the screen doesn't get rendered on my application. I have to navigate to other screen and navigate back to get the video tile rendered on my app