Start and Join Webinar


#1

How can I start and join a webinar in my app using iOS sdk?


#2

if u want to start a webinar meeting, you need to schedule a webinar on the web first. Then you can start the meeting like a normal meeting:
MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService];
if (ms)
{
//Sample for Start Param interface
MobileRTCMeetingStartParam * param = nil;
MobileRTCMeetingStartParam4LoginlUser * user = [[[MobileRTCMeetingStartParam4LoginlUser alloc]init]autorelease];
param = user;
param.meetingNumber = kSDKMeetNumber; // if kSDKMeetNumber is empty, it‘s a instant meeting.
param.isAppShare = appShare;
MobileRTCMeetError ret = [ms startMeetingWithStartParam:param];
NSLog(@“onMeetNow ret:%d”, ret);
return;
}

if u want to join a webinar meeting, You also need to get WebinarToken from the REST API. Then you can add it like this:
MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService];
if (ms)
{
//For Join a meeting with password
NSDictionary *paramDict = @{
kMeetingParam_Username:kSDKUserName,
kMeetingParam_MeetingNumber:meetingNo,
kMeetingParam_MeetingPassword:pwd,
kMeetingParam_WebinarToken:kWebinarToken,
//kMeetingParam_NoAudio:@(YES),
//kMeetingParam_NoVideo:@(YES),
};
MobileRTCMeetError ret = [ms joinMeetingWithDictionary:paramDict];

    NSLog(@"onJoinaMeeting ret:%d", ret);
}

Thanks~


#3

Hi Murray

Thanks for your reply. I tried joining a webinar meeting using iOS SDK and got alert saying that “The meeting has problem. (Error code: 3038)”

I used following parameters to join meeting:
kMeetingParam_Username, kMeetingParam_MeetingNumber and kMeetingParam_WebinarToken

Am I missing anything?


#4

Hi Neha,

The error code you got (Error code: 3038) indicates that the webinar has expired. Please ensure the webinar that you are joining is still valid at the time you are joining and the token you pass is also valid.

Let us know if you have any other questions.

Thanks