How to customize Meeting view or the AV session View


#1

Kindly guide as to how we can put our buttons in AV session, so that we can add a new user or can disconnect a user in an ongoing AV session. We can customize the buttons or UI before the start of meeting but cannot customize the live session.

 

N plz do provide sample code or further help.

 

THank you

Javed


#2

Hi Javed,

please take a look at the following code sample:

//For adding customize view above the meeting view

    if (state == MobileRTCMeetingState_InMeeting)

    {

        MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService];

        UIView *v = [ms meetingView];

        

        CGFloat offsetY = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) ? 220 : 180;

        UIView *sv = [[UIView alloc] initWithFrame:CGRectMake(0, offsetY, v.frame.size.width, 50)];

        sv.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleBottomMargin;

        sv.backgroundColor = [UIColor redColor];

        [v addSubview:sv];

        [sv release];

Best

Wei