Facing issues in Share Screen

Any one help me for share screen option is not showing. i am using swift 4

Hi eduzoom_1
I don’t know exactly what your problem is.
Can you describe your problem in detail so that we can help you locate it
@Carson_Chen can you help us follow up.
Thanks.


when i click the screen option in the share content it is not sharing .

Hi eduzoom_1
If you did not respond to “share content”, please check whether the “- (BOOL)onClickedShareButton (UIViewController*)parentVC addShareActionItem (NSMutableArray *)array” The call back that’s your return is YES or NO.

If you did not respond to “share content” then pop up the alert option, click “Screen” and there is no response, check “- (void)onClickShareScreen:(UIViewController * _Nonnull)parentVC;” Whether to implement.

“Share screen” function, please refer to:https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/zoom-meeting-ui/screen-share

Once i click the screen option from share content i am calling below function
func onClickShareScreen(_ parentVC: UIViewController) {
let ms = MobileRTC.shared().getMeetingService()
if ms != nil {
if (ms?.isStartingShare())! {
ms?.stopAppShare()
print(“Stop Screen Sharing”)
}
else {
ms?.startAppShare()
// ms?.isDirectAppShareMeeting()
print(“Start Screen Sharing”)
}
}
}

Hi eduzoom_1

  • (void)onClickShareScreen:(UIViewController
    This call is for you to use as a guide. Normally, if you don’t need device share, you don’t need to implement this callback.

In addition,- (BOOL)startAppShare This method is used for custom UI, If you have zoom UI, you don’t normally need to use this method

  • (BOOL)isDirectAppShareMeeting;
    This method will only return YES if the parameter isAppShare=YES is used in stat meeting.

It is recommended that you carefully read our usage documents and refer to our sample project before developing.

our usage documents:https://marketplace.zoom.us/docs/sdk/native-sdks/iOS
our sample project:https://github.com/zoom/zoom-sdk-ios

I hope it helps
Thks

i follwed your usage document still i don’t get the screen share.

I am getting the screen option in the share content , when i click the screen option nothing happen.

Hi eduzoom_1,

Thanks for the reply. The screen share button in the iOS SDK demo is not the same as the one in the Zoom iOS Client. Due to the security constraint from Apple, the screen sharing cannot be done with just one click. When the screen share button is clicked, the onClickShareScreen is triggered, it is used to show your user how to enable the screen broadcasting.

In order to perform screen sharing, you may refer to the instruction here: https://support.zoom.us/hc/en-us/articles/115005890803-iOS-Screen-Sharing

Hope this helps. Thanks!