Renderer for this application.
- Source:
Members
(inner, constant) streamNames :Array
Array to keep track of the virtual devices corrected name.
- Source:
Type:
-
Array
(inner, constant) virtualDevicesName :Array
Virtual devices names.
- Source:
Type:
-
Array
Methods
(inner) myInit()
Main function of the renderer; set all callback for easyrtc, connect the robot to the easyrtc
server and configure the 2 video stream.
- Source:
Type Definitions
acceptCall(easyrtcid, acceptor)
Callback of the accept checker of easyrtc
- Source:
Parameters:
Name | Type | Description |
---|---|---|
easyrtcid |
number
|
Id of the peer sending data. |
acceptor |
callback
|
Need to be sets to access or refuse a call. |
patrolReceivedCallback(easyrtcId, msgType, patrolJsonString)
Callback for the patrol-plan data channel from easyrtc.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
easyrtcId |
number
|
Id of the peer sending data. |
msgType |
String
|
Data channel the data are comming from. |
patrolJsonString |
String
|
JSON string of the patrol data. |
streamRequestCallback(easyrtc, msgType, msgData)
Callback for the request-feed data channel msg from easyrtc.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
easyrtc |
number
|
Id of the peer sending data. |
msgType |
String
|
Data channel the data are comming from. |
msgData |
String
|
String of the requested string name. |
teleopCallback(easyrtc, msgType, msgData)
Callback for the joystick-position data channel from easyrtc.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
easyrtc |
number
|
Id of the peer sending data. |
msgType |
String
|
Data channel the data are comming from. |
msgData |
String
|
JSON string of the teleop datas. |