Constructor
new AudioPeer(params)
Creates an instance of AudioPeer Takes the url of the current site and a target
element where html elements will be appended.
Parameters:
| Name | Type | Description |
|---|---|---|
params |
initParameters | see type definition for initParameters |
- Source:
Members
displayUpdate
Helper method to display information to DOM element
- Source:
onPeerClose
Callback method that cleans up after peer connection is closed
- Source:
onPeerDisconnected
Callback method for when a peer connection is lost saves the last peer id, last server
id, and attempts to reconnect
- Source:
onPeerError
Helper method for when an error occurs
- Source:
parseURLSearchParams
Helper method that converts url paramters to an object
- Source:
queryStringFromObject
Helper method that converts an object to a query string
- Source: