| description | Documentation for the two classes GuestVC and AdminVC with method descriptions |
|---|
Class for creating a connection from the guest side
Desc: Join to room
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Leave the room
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Set video container for testing to display camera
{% hint style="info" %} Use before testing starts {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | elem HTML |
- |
Desc: Set camera device
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | string - device ID |
- |
Desc: Set micro device
| Type | Param | Return |
|---|---|---|
| method | string - device ID |
- |
{% hint style="info" %} Use before connecting to the session {% endhint %}
Desc: Set sound device
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | string - device ID |
- |
Desc: Get micro devices list
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | objects array
|
|
|
Desc: Get camera devices list
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | objects array
|
|
|
Desc: Get sound devices list
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | objects array
|
|
|
Desc: get current camera device ID
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | string |
Desc: get current sound device ID
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | string |
Desc: get current micro device ID
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | string |
Desc: Start testing devices
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Stop testing devices
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Set elem HTML for display chat
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | elem HTML |
- |
Desc: Send message for chat
| Type | Param | Return |
|---|---|---|
| method | string - message for send |
- |
string - user ID for direct message (example, @student1234 Hello!) |
Desc: Set classes for styling messages for chat
| Type | Param | Return |
|---|---|---|
| method |
|
- |
own - for display own messages |
||
fromGuestToMe - messages from guest to guest as direct
message (other guests doesn't see this message) |
||
fromOwnerToMe - message from room owner to guest as
direct message (other guests doesn't see this message) |
||
fromMeToGuest - message as direct message from me to
guest |
||
guests - message for all users in room from guests |
||
roomOwner - message from room owner for all users in
room |
Desc: Set chat config for guests
| Type | Param | Return |
|---|---|---|
| method |
|
|
|
|
||
|
|
{% hint style="info" %} Be sure to set values for all parameters when using this method, or you can choose not to use this method, then the default parameters will be used {% endhint %}
Desc: Disable micro
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Enable micro
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Disable local camera
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Enable local camera
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Set user name
| Type | Param | Return |
|---|---|---|
| method | string |
- |
int |
Desc: Set user ID
| Type | Param | Return |
|---|---|---|
| method | string |
- |
Desc: Get user ID
| Type | Param | Return |
|---|---|---|
| method | - | string |
Desc: Get users ID in room
| Type | Param | Return |
|---|---|---|
| method | - | string array |
Desc: Set room ID for connection
| Type | Param | Return |
|---|---|---|
| method | string |
- |
int |
Desc: Set user connection status
| Type | Param | Return |
|---|---|---|
| method | bool |
- |
Desc: Get current user connection status
| Type | Param | Return |
|---|---|---|
| method | - | bool |
true - connected |
||
false - disconnected |
Desc: Set HTML elems for display remote video streams
{% hint style="info" %} Must call before connect {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | HTML elem for display remote screen | - |
| HTML elem for display remote camera |
Desc: Set HTML elem for display local camera
{% hint style="info" %} Must call before connect {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | HTML elem for display local camera | - |
Desc: Set callbacks for changing button state
{% hint style="info" %} Must call before connect {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | callback for displaying the connection |
- |
callback for displaying the disconnection |
Desc: Get instance of class GuestVC
| Type | Param | Return |
|---|---|---|
| method | - | GuestVC |
Desc: Detect 2G network and alert the user
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Send some data to room owner for display it in content view
| Type | Param | Return |
|---|---|---|
| method | structure
|
- |
|
|
- |
Desc: Set whether a guest to hear the other guests in room
| Type | Param | Return |
|---|---|---|
| method | bool |
- |
true- guest will be hear other guests |
||
false - guest will not hear other guests |
Desc: Set whether a guest to hear the other guests in room
| Type | Param | Return |
|---|---|---|
| method | - | bool |
true - guest will be hear other guests |
||
false - guest will not hear other guests |
Desc: Event that is triggered when the status of the room owner changes
{% hint style="info" %} Be sure to add at the end of the code {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Event handler that is called when connecting if the room is full
{% hint style="info" %} Be sure to add at the end of the code {% endhint %}
| Type | Param | Return |
|---|---|---|
| event | - | - |
Desc: Event handler that handle stream
{% hint style="info" %} Be sure to add at the end of the code {% endhint %}
| Type | Param | Return |
|---|---|---|
| event | - | - |
Desc: Event handler that handle stream error
{% hint style="info" %} Be sure to add at the end of the code {% endhint %}
| Type | Param | Return |
|---|---|---|
| event | - | - |
Desc: Event handler for messgae from other peers
| Type | Param | Return |
|---|---|---|
| event | callback |
- |
Class for creating a link on the owner's side
Desc: Set video container for testing to display camera
{% hint style="info" %} Use before testing starts {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | elem HTML |
- |
Desc: Set camera device
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | string - device ID |
- |
Desc: Set micro device
| Type | Param | Return |
|---|---|---|
| method | string - device ID |
- |
{% hint style="info" %} Use before connecting to the session {% endhint %}
Desc: Set sound device
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | string - device ID |
- |
Desc: Get micro devices list
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | string array |
Desc: Get camera devices list
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | string array |
Desc: Get sound devices list
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | string array |
Desc: get current camera device ID
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | string |
Desc: get current sound device ID
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | string |
Desc: get current micro device ID
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | string |
Desc: Start testing devices
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Stop testing devices
{% hint style="info" %} Use before connecting to the session {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Set max guest count in room
| Type | Param | Return |
|---|---|---|
| method | int |
- |
Desc: Set HTML elems for display remote video streams
{% hint style="info" %} Must call before connect {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | HTML elems for display remote camera (the number of elements must be exactly max guest count) |
- |
Desc: Set HTML elems for display local camera and screen
{% hint style="info" %} Must call before connect {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | HTML elem for display local camera |
- |
HTML elem for display screen |
Desc: Set HTML elems for copy children
{% hint style="info" %} Must call before connect {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | HTML elem |
- |
Desc: Set elem HTML for display chat
{% hint style="info" %} Must call before connect {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | elem HTML |
- |
Desc: Send message for chat
| Type | Param | Return |
|---|---|---|
| method | string - message for send |
- |
string - user ID for direct message (example, @student1234 Привет!) |
Desc: Set classes for styling messages for chat
| Type | Param | Return |
|---|---|---|
| метод |
|
- |
own - for display own message |
||
fromGuestToMe - message form guest to me as direct
message |
||
fromMeToGuest - message from me to guest as direct
message |
||
fromGuestToGuest - message from guest to guest as direct
message |
||
guests - message from guest for all |
Desc: Set chat config for room owner
| Type | Param | Return |
|---|---|---|
| method |
|
|
|
|
||
|
|
{% hint style="info" %} Be sure to set values for all parameters when using this method, or you can choose not to use this method, then the default parameters will be used {% endhint %}
Desc: Set callbacks for changing button state
{% hint style="info" %} Must call before connect {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | сallback for displaying the connection |
- |
сallback for displaying the disconnection |
Desc: Set config for screen recorder
| Type | Param | Return |
|---|---|---|
| method |
|
- |
Desc: Set user connection status
| Type | Param | Return |
|---|---|---|
| method | bool |
- |
true - connected |
||
false - disconnected |
Desc: Get current user connection status
| Type | Param | Return |
|---|---|---|
| method | - | bool |
true - connected |
||
false- disconnected |
Desc: Set room ID for connection
| Type | Param | Return |
|---|---|---|
| method | string |
- |
int |
Desc: Get user ID
| Type | Param | Return |
|---|---|---|
| method | - | string |
Desc: Set user ID
| Type | Param | Return |
|---|---|---|
| method | string |
- |
Desc: Get users ID in room
| Type | Param | Return |
|---|---|---|
| method | - | string array |
Desc: Set user name
| Type | Param | Return |
|---|---|---|
| method | string |
- |
int |
Desc: turn on screen recorder
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | bool |
true - if success start |
||
false - if error |
Desc: turn on screen recorder
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | callback(blob) |
bool |
true - if success end |
||
false - if error |
Desc: Disable micro
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Enable micro
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Enable screen sharing
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Disable screen sharing
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Disable local camera
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Enable local camera
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Detect 2G network and alert the user
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Send some data to guests for display it in content view
| Type | Param | Return |
|---|---|---|
| method | structure
|
- |
|
|
- |
Desc: Disabling and deleting a room
{% hint style="info" %} It can be called anywhere in the code, but after defining an instance of this class {% endhint %}
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Create room
| Type | Param | Return |
|---|---|---|
| method | - | - |
Desc: Get instance of class AdminVC
| Type | Param | Return |
|---|---|---|
| method | - | AdminVC |
Desc: Event handler that is triggered when the status of the room owner changes
{% hint style="info" %} Be sure to add at the end of the code {% endhint %}
| Type | Param | Return |
|---|---|---|
| event | - | - |
Desc: Event handler that handle stream
{% hint style="info" %} Be sure to add at the end of the code {% endhint %}
| Type | Param | Return |
|---|---|---|
| event | - | - |
Desc: Event handler that handle stream error
{% hint style="info" %} Be sure to add at the end of the code {% endhint %}
| Type | Param | Return |
|---|---|---|
| event | - | - |
Desc: Event handler for massage from guests
{% hint style="info" %} Be sure to add at the end of the code {% endhint %}
| Type | Param | Return |
|---|---|---|
| event | callback |
- |