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