Class: EnxRtc

It has a set of methods using which one can easily deploy a generic RTC application.

Join Room

The API is used in the client endpoint to connect to the room (conference room) hosted on EnableX Server and to carry out Real-Time Communication Session. The API allows you to qualify users’ audio/video optimum communication quality by providing configurable parameters.

To quick start initialize the Object of Class EnxRtc:

EnxRtc *enxRtc = [[EnxRtc alloc] init]; [enxRtc joinRoom:@"token" delegate:id <EnxRoomDelegate> PublishStreamInfo:@{publish-Stream-Info}]; Parameter:
Parameters Description
Token The token value generated from server API
Publish-Stream-Info Publish-Stream-Info JSON.
Delegate The EnxRoomDelegate object, which is the delegate for the EnxRoom object.
"audio":true,      /* Published with Audio */ 
"video":true, 	   /* Published with Video */ 
"data":false,      /* Text-Chat Enabled */
"maxVideoBW":400,  /* maxvideo bandwidth*/
"minVideoBW":300,  /* minvideo bandwidth */
"videoSize": videosize,
"audioMuted":true, 	/* Audio muted on entry to room */
"videoMuted":true,  /* Video muted on entry to room */
"name": "mystream"  /* Name of your local stream */
where videoSize Object is:
"minWidth": 720, 
"minHeight": 480, 
"maxWidth": 1280,
"maxHeight": 720 

Return: Local-Stream-Handle