Members
AdapterJS
- Description:
AdapterJS provides polyfills and cross-browser mediaStreamHelpers for WebRTC.
- Source:
- See:
AdapterJS provides polyfills and cross-browser mediaStreamHelpers for WebRTC.
io
- Description:
Socket.IO enables real-time, bidirectional and event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.
- Source:
- See:
Socket.IO enables real-time, bidirectional and event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.
Type Definitions
MediaStream
- Description:
- Source:
Type:
- Object
MediaStreams
- Source:
Properties:
Name | Type | Description |
---|---|---|
MediaStreams.0 |
MediaStream | Audio stream |
MediaStreams.1 |
MediaStream | Video stream |
Type:
- Array
audioStats
- Description:
The Peer connection audio streaming statistics.
- Source:
Properties:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
audioStats.sending |
JSON | The Peer connection sending audio streaming statistics. Properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
audioStats.receiving |
JSON | The Peer connection receiving audio streaming statistics. Properties
|
The Peer connection audio streaming statistics.
Type:
- Object
customSettings
- Description:
The peer stream and data settings.
- Source:
Properties:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Boolean | JSON | The flag if peer has any data channel connections enabled.
If |
|||||||||||||||||
audio |
Boolean | JSON | The peer stream audio settings keyed by stream id.
When defined as |
|||||||||||||||||
audio[streamId].stereo |
Boolean | The flag if stereo band is configured
when encoding audio codec is |
|||||||||||||||||
audio[streamId].echoCancellation |
Boolean | The flag if echo cancellation is enabled for audio tracks. |
|||||||||||||||||
audio[streamId].deviceId |
String |
<optional> |
The peer stream audio track source id of the device used. |
||||||||||||||||
audio[streamId].exactConstraints |
Boolean | The flag if peer stream audio track is sending exact
requested values of |
|||||||||||||||||
video |
Boolean | JSON | The peer stream video settings keyed by stream id.
When defined as |
|||||||||||||||||
video[streamId].resolution |
JSON |
<optional> |
The peer stream video resolution.
[Rel: Properties
|
||||||||||||||||
video[streamId].frameRate |
Number | JSON |
<optional> |
The peer stream video
frameRate per second (fps) or video frameRate settings.
When defined as a JSON Object, it is the user set frameRate settings with ( |
||||||||||||||||
video[streamId].screenshare |
Boolean | The flag if peer stream is a screensharing stream. |
|||||||||||||||||
video[streamId].deviceId |
String |
<optional> |
The peer stream video track source id of the device used. |
||||||||||||||||
video[streamId].exactConstraints |
Boolean | The flag if peer stream video track is sending exact
requested values of |
|||||||||||||||||
video[streamId].facingMode |
String | JSON |
<optional> |
The peer stream video camera facing mode.
When defined as a JSON Object, it is the user set facingMode settings with ( |
||||||||||||||||
maxBandwidth |
Object | The maximum streaming bandwidth sent from peer. Properties
|
|||||||||||||||||
mediaStatus |
Object | The peer streaming media status. Properties
|
The peer stream and data settings.
Type:
- Object
dataChannelInfo
- Source:
Properties:
Name | Type | Description |
---|---|---|
channelName |
String | The data channel id. |
channelProp |
String | The data channel property. |
channelType |
String | The data channel type. |
currentTransferId |
String | The data channel connection
current progressing transfer session. Defined as |
currentStreamId |
String | The data channel connection
current data streaming session id. Defined as |
readyState |
String | The data channel connection readyState. |
bufferedAmountLow |
String | The data channel buffered amount. |
bufferedAmountLowThreshold |
String | The data channel buffered amount threshold. |
Type:
- Object
dataTransferResult
- Source:
Properties:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
#peerId |
Object | Data transfer success or error result keyed by peer id. Properties
|
Type:
- Object.<String, Object>
getDisplayMediaOptions
- Description:
The screen Stream configuration options.
Note that Safari currently does not apply constraints if provided.
* @property {boolean} [useExactConstraints=false] Note that by enabling this flag, exact values will be requested when retrieving screen Stream, but it does not prevent constraints related errors. By default when not enabled, expected mandatory maximum values (or optional values for source ID) will requested to prevent constraints related errors where the expected maximum value will not be requested due to the lack of support. The flag ifshareScreen()
should request for screen Stream to match exact requested values ofvideo.deviceId
,video.resolution
andvideo.frameRate
when provided.-
- Source:
Properties:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
video |
boolean | JSON |
<optional> |
true
|
The video configuration options. Properties
|
The screen Stream configuration options.
Note that Safari currently does not apply constraints if provided.
* @property {boolean} [useExactConstraints=false] Note that by enabling this flag, exact values will be requested when retrieving screen Stream, but it does not prevent constraints related errors. By default when not enabled, expected mandatory maximum values (or optional values for source ID) will requested to prevent constraints related errors where the expected maximum value will not be requested due to the lack of support. The flag ifshareScreen()
should request for screen Stream to match exact requested values of
video.deviceId
, video.resolution
and video.frameRate
when provided.
Type:
- Object
getUserMediaOptions
- Description:
The camera Stream configuration options.
Note that Safari currently does not apply constraints if provided.
- Source:
Properties:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
useExactConstraints |
boolean |
<optional> |
false
|
Note that by enabling this flag, exact values will be requested when retrieving camera Stream,
but it does not prevent constraints related errors. By default when not enabled,
expected mandatory maximum values (or optional values for source ID) will requested to prevent constraints related
errors, with an exception for |
||||||||||||||||||||||||||||||||||||||||||
audio |
boolean | JSON |
<optional> |
false
|
The audio configuration options. Properties
|
||||||||||||||||||||||||||||||||||||||||||
video |
boolean | JSON |
<optional> |
false
|
The video configuration options. Properties
|
The camera Stream configuration options.
Note that Safari currently does not apply constraints if provided.
Type:
- Object
initOptions
- Description:
When provided as a string, it's configured as
appKey
.
- Source:
Properties:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
appKey |
String | The App Key. By default, |
||||||||||||||||||||||||
defaultRoom |
String |
<optional> |
appKey
|
The default Room to connect to when no |
||||||||||||||||||||||
roomServer |
String |
<optional> |
The Auth server for debugging purposes to use. Note that this is a debugging feature and is only used when instructed for debugging purposes. |
|||||||||||||||||||||||
enableStatsGathering |
boolean |
<optional> |
true
|
Configure the anonymous performance and connectivity statistic collection function. Temasys collects encrypted, anonymous performance and connectivity statistics to allow us to improve performance for our customers and identify regional or ISP specific connectivity issues. This data does not contain any personal information or session content. To enable the configuration of this option, you need to enable the "Collect Quality Statistics" option on the Temasys console Website under App key settings section. |
||||||||||||||||||||||
enableDataChannel |
boolean |
<optional> |
true
|
The flag if Datachannel connections should be enabled. |
||||||||||||||||||||||
forceTURN |
boolean |
<optional> |
false
|
The flag if Peer connections should enforce connections over the TURN server. |
||||||||||||||||||||||
TURNServerTransport |
boolean |
<optional> |
Note that configuring the protocol may not necessarily result in the desired network transports protocol
used in the actual TURN network traffic as it depends which protocol the browser selects and connects with.
This simply configures the TURN ICE server urls The option to configure the ?transport=
query parameter in TURN ICE servers when constructing a Peer connections. When not provided, its value is ANY .
Skylink.TURN_TRANSPORT |
|||||||||||||||||||||||
credentials |
JSON |
<optional> |
Note that we strongly recommend developers to return theThe credentials used for authenticating App Key with credentials to retrieve the Room session token used for connection in Skylink#joinRoom .
Note that switching of Rooms is not allowed when using credentials based authentication, unless
init() is invoked again with a different set of credentials followed by invoking
the Skylink#joinRoom .
Properties
|
|||||||||||||||||||||||
audioFallback |
boolean |
<optional> |
false
|
The flag if |
||||||||||||||||||||||
forceSSL |
boolean |
<optional> |
true
|
The flag if HTTPS connections should be enforced
during request to Auth server and socket connections to Signaling server
when accessing |
||||||||||||||||||||||
socketTimeout |
number |
<optional> |
7000
|
The timeout for each attempts for socket connection
with the Signaling server to indicate that connection has timed out and has failed to establish.
Note that the minimum timeout value is |
||||||||||||||||||||||
forceTURNSSL |
boolean |
<optional> |
false
|
The flag if TURNS protocol should be used. Setting this flag to true sets
Note that currently Firefox does not support the TURNS protocol, and that if TURNS is required,
TURN ICE servers using port |
||||||||||||||||||||||
socketServer |
String | JSON |
<optional> |
The Signaling server for debugging purposes to use.
Properties
|
|||||||||||||||||||||||
beSilentOnStatsLogs |
boolean |
<optional> |
false
|
The flag if all logs triggered by the statistics module should be silent. |
||||||||||||||||||||||
beSilentOnParseLogs |
boolean |
<optional> |
false
|
The flag if media and codec parsing logs should be silent. |
||||||||||||||||||||||
statsInterval |
String |
<optional> |
20
|
The frequency of posting stats logs in seconds. |
When provided as a string, it's configured as appKey
.
Type:
- Object
joinRoomOptions
- Description:
The Room session configuration options.
- Source:
- Deprecated:
- autoBandwidthAdjustment {boolean|JSON} - The flag if Peer connections uploading and downloading bandwidth should be automatically adjusted each time based on a specified interval.
Properties:
Name | Type | Attributes | Default | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
roomName |
String |
<optional> |
The Room name. When not provided or is provided as an empty string, its value is the |
|||||||||||||||||
userData |
JSON | String |
<optional> |
The User custom data.
This can be set after Room session has started using the
|
|||||||||||||||||
useExactConstraints |
boolean |
<optional> |
The |
|||||||||||||||||
audio |
boolean | JSON |
<optional> |
The |
|||||||||||||||||
video |
boolean | JSON |
<optional> |
The |
|||||||||||||||||
voiceActivityDetection |
boolean |
<optional> |
true
|
The flag if voice activity detection should be enabled.
This can only be toggled if User is and for the offerer, which is determined if User's
|
||||||||||||||||
bandwidth |
JSON |
<optional> |
The configuration to set the maximum streaming bandwidth to send to Peers. You can also use the preconfigured
constant Note that this is currently not supported with Firefox browsers versions 48 and below as noted in an existing bugzilla ticket here. Properties
|
The Room session configuration options.
Type:
- Object
logItems
- Source:
Properties:
Name | Type | Description |
---|---|---|
logItems.0 |
Date | The DateTime of when the log was stored |
logItems.1 |
String | The log level |
logItems.2 |
String | The log message |
logItems.3 |
Object | The debug object |
Type:
- Array
mediaInfo
- Description:
An object that represents a media.
- Source:
Properties:
Name | Type | Description |
---|---|---|
mediaInfo.publisherId |
String | |
mediaInfo.mediaId |
String | |
mediaInfo.mediaType |
String | |
mediaInfo.mediaState |
String | |
mediaInfo.transceiverMid |
String | |
mediaInfo.mediaMetaData |
String | JSON | |
mediaInfo.simulcast |
JSON | |
streamId |
String | The stream id associated with the media. |
An object that represents a media.
Type:
- Object
peerInfo
- Source:
Properties:
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
userData |
JSON | String | The Peer current custom data. |
||||||||||||||||||||||||||||
settings |
customSettings | The Peer sending stream settings. |
||||||||||||||||||||||||||||
agent |
JSON | The Peer agent information. Properties
|
||||||||||||||||||||||||||||
room |
roomInfo | The Room Peer is from. |
||||||||||||||||||||||||||||
config |
JSON | The Peer connection configuration. Properties
|
peerListMessage
- Source:
Properties:
Name | Type | Description |
---|---|---|
type |
SkylinkConstants.SIG_MESSAGE_TYPE.GET_PEERS | |
showAll |
boolean |
recordingSessions
- Source:
Properties:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
#recordingId |
Object.<string, Object> | The recording session keyed by recording id. Properties
|
Type:
- Object
refreshConnectionResolve
- Source:
Properties:
Name | Type | Description |
---|---|---|
failedRefresh |
Object.<string, Array.<String>> | Array of refresh errors keyed by peer Id. |
successfulRefresh |
Object.<string, {'customSettings': customSettings, iceRestart: boolean}> | List of successfull refreshes keyed by peer Id. |
Type:
- Object
roomInfo
- Source:
Properties:
Name | Type | Description |
---|---|---|
duration |
Number | The maximum allowed room duration |
id |
String | The room id |
inRoom |
Boolean | The flag if the peer is in the room |
isLocked |
Boolean | The flag if the room is locked |
roomName |
String | The room name |
roomSessionId |
String | The room name session id |
socketSession
- Description:
The socket connection session information.
- Source:
Properties:
Name | Type | Description |
---|---|---|
socketSession.serverUrl |
String | The socket connection Signaling url used. |
socketSession.transportType |
String | The socket connection transport type used. |
socketSession.socketOptions |
JSON | The socket connection options. |
socketSession.attempts |
Number | The socket connection current reconnection attempts. |
socketSession.finalAttempts |
Number | The socket connection current last attempts for the last available transports and port. |
The socket connection session information.
Type:
- Object
statistics
- Description:
The Peer connection current statistics. Defined only when
state
payload isRETRIEVE_SUCCESS
.
- Source:
Properties:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
peerId |
String | The peer to which the statistics belong to |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
statistics.raw |
JSON | The Peer connection raw statistics.before parsing. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
statistics.audio |
audioStats | The Peer connection audio streaming statistics. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
statistics.video |
videoStats | The Peer connection video streaming statistics. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
statistics.selectedCandidatePair |
JSON | The Peer connection selected ICE candidate pair statistics. Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
statistics.certificate |
JSON | The Peer connection DTLS/SRTP exchanged certificates information. Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
statistics.connection |
JSON | The Peer connection object statistics. Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
error |
Error | The error object received.
Defined only when |
The Peer connection current statistics.
Defined only when state
payload is RETRIEVE_SUCCESS
.
Type:
- Object
streamSources
- Source:
Properties:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
audio |
Object | The list of audio input (microphone) and output (speakers) sources. Properties
|
|||||||||||||||||||||||||
video |
Object | The list of video input (camera) sources. Properties
|
Type:
- Object
streamsList
- Source:
Properties:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
#peerId |
Object.<String, Object> | Peer streams info keyed by peer id. Properties
|
Type:
- Object.<String, Object>
transferInfo
- Source:
Properties:
Name | Type | Description |
---|---|---|
data |
String | Blob | The data object.
Defined only when |
name |
String | The data transfer name. |
size |
Number | The data transfer data object size. |
dataType |
SkylinkConstants.DATA_TRANSFER_SESSION_TYPE | The data transfer session type. |
chunkType |
SkylinkConstants.DATA_TRANSFER_DATA_TYPE | The data transfer type of data chunk being used to send to Peer for transfers. The initial data chunks value may change depending on the currently received data chunk type or the agent supported sending type of data chunks. |
mimeType |
String | The data transfer data object MIME type.
Defined only when |
chunkSize |
Number | The data transfer data chunk size. |
percentage |
Number | The data transfer percentage of completion progress. |
timeout |
Number | The duration for which to wait for a response from the remote peer before terminating the transfer |
isPrivate |
Boolean | The flag if message is targeted or not, basing
off the |
direction |
SkylinkConstants.DATA_TRANSFER_DIRECTION | The data transfer direction. |
Type:
- Object
videoStats
Properties:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
videoStats.sending |
JSON | The Peer connection sending video streaming statistics. Properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
videoStats.receiving |
JSON | The Peer connection receiving video streaming statistics. Properties
|