App Share Not Working in Demo Code


#1

I pulled the latest from MobileRTCSample from GitHub, but when I attempt to start an App Share meeting, I get the err return onMeetNow ret:150 which is MobileRTCMeetError_InvalidArguments

I’m logged in via the settings menu. 

The params seem to be correct and inline with what the documentation states for startMeetingWithDictionary:


Printing description of paramDict:

{

    "kMeetingParam\_IsAppShare" = 1;

    "kMeetingParam\_UserType" = 100;

}

 


#2

hi greg:

if you had already logged in. You do not need to pass userid & usertype & usertoken. Otherwise, you would got error MobileRTCMeetError_InvalidArguments.


#3

Using the demo app, with no changes made, and fresh install on device…

  1. Settings > Sign in

  2. Tap Meet Now > App Share Meeting

I get the result:

onMeetNow ret:150

  1. Settings > Sign out

  2. Tap Meet Now > App Share Meeting

I get the same result:

onMeetNow ret:150

Modifying the code as suggested: MobileRTCMeetError ret = [ms startMeetingWithDictionary:@{}];

code is placed here: https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/MainViewController.m#L400

  1. Settings > Sign in

  2. Tap Meet Now > App Share Meeting

I get the same result:

onMeetNow ret:150

 

 

Does the functionality for ‘App Share Meeting’ in the demo code actually work?

 


#4

app share meeting works indeed. onMeetRet: 150, it means that you pass the incorrect param while startmeeting.

  1. If you had already login, start meeting as following.

| paramDict = @{kMeetingParam_UserType:@(userType), |
|   | kMeetingParam_IsAppShare:@(appShare), |
|   | //kMeetingParam_ParticipantID:kParticipantID, |
|   | //kMeetingParam_NoAudio:@(YES), |
|   | //kMeetingParam_NoVideo:@(YES), |
|

 2. If you do not logged in.

| if (MobileRTCUserType_APIUser == userType) |
|   | { |
|   | paramDict = @{kMeetingParam_UserID:kSDKUserID, |
|   | kMeetingParam_UserToken:kSDKUserToken, |
|   | kMeetingParam_UserType:@(userType), |
|   | kMeetingParam_Username:kSDKUserName, |
|   | kMeetingParam_MeetingNumber:kSDKMeetNumber, |
|   | kMeetingParam_IsAppShare:@(appShare), |
|   | //kMeetingParam_ParticipantID:kParticipantID, |
|   | //kMeetingParam_NoAudio:@(YES), |
|   | //kMeetingParam_NoVideo:@(YES), |
|   | }; |
|

 

 

 

make sure pass the correct userid, usertoken, usertype, meetingnumber.

|

}

 

|

|

};

 

 

|


#5

I haven’t modified the code of the demo app aside from the SDK key. 

Referring back to my original message, that’s how it’s being called.


#6

hi greg:

have you set domain before you start meeting?


#7

Ok, that seems to get the meeting started.

I updated this line:

#define kSDKDomain      @“zoom.us

After seeing that domain mentioned inline here:

https://developer.zoom.us/docs/ios/sdk-functions-and-usage/

Seems like perhaps it would be helpful to just have that set as the default.

At this point, I’m able to start an app share meeting and I can see the video from the camera in a browser. However, I’m not sure how to minimize the meeting UI and see the app sharing?

This is from the above guide:

> The stack supports to start a meeting with sharing content in App(App Share), and at the same time the meeting UI can be hidden in the background while app sharing.