new Red5ProSharedObjectPeerConnection()
Methods
-
_addConnectionHandlers(connection, promise)
-
Assigns handlers to events on the peer connection instance.
Parameters:
Name Type Description connection
RTCPeerConnection promise
Promise The
Promise
to resolve or reject on success of connection. -
_removeConnectionHandlers(connection)
-
Removes handlers assigned to the peer connection instance.
Parameters:
Name Type Description connection
RTCPeerConnection -
init(configuration, id) → {Promise}
-
Initialize the WebSocket connection based on configuration properties.
Parameters:
Name Type Description configuration
Object Configuration object used in construction of RTCPeerConnection.
id
String Optional identifier for the shared object connection instance. Needs to be unique. Autogenerated if left undefined.
Returns:
Promise