Module: EventBus

EventBus.
Source:

Methods

(async, static) getCameraList(clientId) → {array}

Parameters:
Name Type Description
clientId string
Source:
Returns:
- list of available camera, each camera is an object of with id and name properties.
Type
array

(async, static) getCameraPreview(param0) → {data}

Parameters:
Name Type Description
param0 object
Properties
Name Type Description
cameraId object
clientId object
Source:
Returns:
Type
data

(async, static) getClientStatusList() → {array}

Source:
Returns:
- list of connected clients, each clinet is an object with id and type property
Type
array

(async, static) sendMessage(body)

Parameters:
Name Type Description
body string
Source:
Returns:
- http result.

(async, static) setRuntimeConfig(param0)

Parameters:
Name Type Description
param0 object
Properties
Name Type Attributes Default Description
flipLeftRight boolean <optional>
false mirror output stream.
flipUpDown boolean <optional>
false mirror vertically output stream.
rotation number <optional>
0 output rotation degree 0, 90, 180, 270.
fixedCorners boolean <optional>
fales enable srufcae fixed corners after first detection.
clientId string
customCorners array <optional>
array of 8 Numbers ranged from 0-1 that decribe 4 points based on percentage [x1, y1, x2, y2 ...] example [0.1, 0.1, 0.8, 0.1, 0.1, 0.8, 0.8 ,0.8]
enableColor boolean <optional>
enableEstimation boolean <optional>
Source:
Returns:
- http result.

(async, static) startStream(param0)

Parameters:
Name Type Description
param0 object
Properties
Name Type Attributes Default Description
meetingId string
meeting_token string
surfaceType string PAPER or WHITEBOARD
cameraId string <optional>
either sipUri or cameraId should be specified.
sipUri string <optional>
either sipUri or cameraId should be specified.
flipLeftRight boolean <optional>
false mirror output stream.
flipUpDown boolean <optional>
false mirror vertically output stream.
rotation number <optional>
0 output rotation degree 0, 90, 180, 270.
fixedCorners boolean <optional>
fales enable srufcae fixed corners after first detection.
clientId string
customCorners array <optional>
array of 8 Numbers ranged from 0-1 that decribe 4 points based on percentage [x1, y1, x2, y2 ...] example [0.1, 0.1, 0.8, 0.1, 0.1, 0.8, 0.8 ,0.8]
enableColor boolean <optional>
enableEstimation boolean <optional>
Source:
Returns:
- http result

(async, static) stopStream(clientId)

Parameters:
Name Type Description
clientId string
Source:
Returns:
- http result