SkylinkConstants
- Description:
BUNDLE_POLICY
CANDIDATE_GENERATION_STATE
CANDIDATE_PROCESSING_STATE
CHUNK_FILE_SIZE
DATA_CHANNEL_STATE
DATA_CHANNEL_TYPE
DATA_CHANNEL_MESSAGE_ERROR
DATA_TRANSFER_STATE
DATA_TRANSFER_DATA_TYPE
DT_PROTOCOL_VERSION
DATA_TRANSFER_DIRECTION
DATA_TRANSFER_SESSION_TYPE
EVENTS
GET_CONNECTION_STATUS_STATE
GET_PEERS_STATE
HANDSHAKE_PROGRESS
ICE_CONNECTION_STATE
LOG_LEVEL
MEDIA_ACCESS_FALLBACK_STATE
MEDIA_SOURCE
MEDIA_STATUS
MEDIA_TYPE
MEDIA_STATE
PEER_CERTIFICATE
PEER_CONNECTION_STATE
READY_STATE_CHANGE_ERROR
READY_STATE_CHANGE
RTCP_MUX_POLICY
RTMP_STATE
RECORDING_STATE
SDP_SEMANTICS
SOCKET_ERROR
SOCKET_FALLBACK
SYSTEM_ACTION
SYSTEM_ACTION_REASON
SM_PROTOCOL_VERSION
TURN_TRANSPORT
VIDEO_RESOLUTION
VIDEO_QUALITY
- Source:
Members
(static, constant) BUNDLE_POLICY :Object
- Description:
Learn more about how ICE works in this article here.
The list of available Peer connection bundle policies.
- Source:
- Since:
- 0.6.18
Properties:
Name | Type | Description |
---|---|---|
MAX_COMPAT |
String | Value |
MAX_BUNDLE |
String | Value |
BALANCED |
String | Value |
NONE |
String | Value |
Learn more about how ICE works in this article here.The list of available Peer connection bundle policies.
Type:
- Object
(static, constant) CANDIDATE_GENERATION_STATE :Object
- Description:
Learn more about how ICE works in this article here.
The list of Peer connection ICE gathering states.
- Source:
- Since:
- 0.4.1
Properties:
Name | Type | Description |
---|---|---|
GATHERING |
String | Value |
COMPLETED |
String | Value |
Learn more about how ICE works in this article here.The list of Peer connection ICE gathering states.
Type:
- Object
(static, constant) CANDIDATE_PROCESSING_STATE :Object
- Description:
Learn more about how ICE works in this article here.
The list of Peer connection remote ICE candidate processing states for trickle ICE connections.
- Source:
- Since:
- 0.6.16
Properties:
Name | Type | Description |
---|---|---|
RECEIVED |
String | Value |
DROPPED |
String | Value |
BUFFERED |
String | Value |
PROCESSING |
String | Value |
PROCESS_SUCCESS |
String | Value |
PROCESS_ERROR |
String | Value |
Learn more about how ICE works in this article here.The list of Peer connection remote ICE candidate processing states for trickle ICE connections.
Type:
- Object
(static, constant) DATA_CHANNEL_MESSAGE_ERROR :object
- Description:
The list of Datachannel sending message error types.
- Source:
- Since:
- 0.6.16
Properties:
Name | Type | Description |
---|---|---|
MESSAGE |
String | Value |
TRANSFER |
String | Value |
The list of Datachannel sending message error types.
Type:
- object
(static, constant) DATA_CHANNEL_STATE :object
- Description:
The list of Datachannel connection states.
- Source:
- Since:
- 0.1.0
Properties:
Name | Type | Description |
---|---|---|
CONNECTING |
String | Value |
OPEN |
String | Value |
CLOSING |
String | Value |
CLOSED |
String | Value |
ERROR |
String | Value |
CREATE_ERROR |
String | Value |
BUFFERED_AMOUNT_LOW |
String | Value |
SEND_MESSAGE_ERROR |
String | Value |
The list of Datachannel connection states.
Type:
- object
(static, constant) DATA_CHANNEL_TYPE :object
- Description:
The list of Datachannel types.
- Source:
- Since:
- 0.6.1
Properties:
Name | Type | Description |
---|---|---|
MESSAGING |
String | Value |
DATA |
String | [UNAVAILABLE] Value |
The list of Datachannel types.
Type:
- object
(static, constant) DATA_TRANSFER_DATA_TYPE :Object
- Description:
The list of supported data transfer data types.
- Source:
- Since:
- 2.0.0
Properties:
Name | Type | Description |
---|---|---|
BINARY_STRING |
String | Value |
ARRAY_BUFFER |
String | Value |
BLOB |
String | Value |
STRING |
String | Value |
The list of supported data transfer data types.
Type:
- Object
(static, constant) DATA_TRANSFER_DIRECTION :Object
- Description:
The list of data transfers directions.
- Source:
- Since:
- 2.2.5
Properties:
Name | Type | Description |
---|---|---|
UPLOAD |
String | Value |
DOWNLOAD |
String | Value |
The list of data transfers directions.
Type:
- Object
(static, constant) DATA_TRANSFER_SESSION_TYPE :Object
- Description:
The list of data transfers session types.
- Source:
- Since:
- 0.1.0
Properties:
Name | Type | Description |
---|---|---|
BLOB |
String | Value |
DATA_URL |
String | Value |
The list of data transfers session types.
Type:
- Object
(static, constant) DATA_TRANSFER_STATE :Object
- Description:
The list of data transfer states.
- Source:
- Since:
- 0.4.0
Properties:
Name | Type | Description |
---|---|---|
UPLOAD_REQUEST |
String | Value |
UPLOAD_STARTED |
String | Value |
DOWNLOAD_STARTED |
String | Value |
REJECTED |
String | Value |
USER_REJECTED |
String | Value |
UPLOADING |
String | Value |
DOWNLOADING |
String | Value |
UPLOAD_COMPLETED |
String | Value |
DOWNLOAD_COMPLETED |
String | Value |
CANCEL |
String | Value |
ERROR |
String | Value |
The list of data transfer states.
Type:
- Object
(static, constant) GET_CONNECTION_STATUS_STATE :Object
- Description:
The list of
Skylink#getConnectionStatus
retrieval states.
- Source:
- Since:
- 0.1.0
Properties:
Name | Type | Description |
---|---|---|
RETRIEVING |
number | Value |
RETRIEVE_SUCCESS |
number | Value |
RETRIEVE_ERROR |
number | Value |
The list of Skylink#getConnectionStatus
retrieval states.
Type:
- Object
(static, constant) GET_PEERS_STATE :Object
- Description:
Note that this feature requires
The list of"isPrivileged"
flag to be enabled for the App Key provided in SkylinkinitOptions
, as only Users connecting using the App Key with this flag enabled (which we call privileged Users / Peers) can retrieve the list of Peer IDs from Rooms within the same App space. Read more about privileged App Key feature here.
method retrieval states.getPeers
- Source:
- Since:
- 0.6.1
Properties:
Name | Type | Description |
---|---|---|
ENQUIRED |
String | Value |
RECEIVED |
String | Value |
Note that this feature requiresThe list of"isPrivileged"
flag to be enabled for the App Key provided in SkylinkinitOptions
, as only Users connecting using the App Key with this flag enabled (which we call privileged Users / Peers) can retrieve the list of Peer IDs from Rooms within the same App space. Read more about privileged App Key feature here.
getPeers
method retrieval states.
Type:
- Object
(static, constant) HANDSHAKE_PROGRESS :Object
- Description:
The list of Peer connection states.
- Source:
- Since:
- 0.1.0
Properties:
Name | Type | Description |
---|---|---|
ENTER |
String | Value |
WELCOME |
String | Value |
OFFER |
String | Value |
ANSWER |
String | Value |
ANSWER_ACK |
string | Value |
ERROR |
string | Value |
The list of Peer connection states.
Type:
- Object
(static, constant) ICE_CONNECTION_STATE :Object
- Description:
Learn more about how ICE works in this article here.
The list of Peer connection ICE connection states.
- Source:
- Since:
- 0.1.0
Properties:
Name | Type | Description |
---|---|---|
CHECKING |
String | Value |
CONNECTED |
String | Value |
COMPLETED |
String | Value |
FAILED |
String | Value |
DISCONNECTED |
String | Value |
CLOSED |
String | Value |
Learn more about how ICE works in this article here.The list of Peer connection ICE connection states.
Type:
- Object
(static, constant) LOG_LEVEL :Object
- Description:
The list of the SDK
console
API log levels.
- Source:
- Since:
- 0.5.4
Properties:
Name | Type | Description |
---|---|---|
DEBUG |
number | Value |
LOG |
number | Value |
INFO |
number | Value |
WARN |
number | Value |
ERROR |
number | Value |
NONE |
number | Value |
The list of the SDK console
API log levels.
Type:
- Object
(static, constant) MEDIA_ACCESS_FALLBACK_STATE :Object
- Description:
The list of
getUserMedia
orshareScreen
Stream fallback states.
- Source:
- Since:
- 0.6.14
Properties:
Name | Type | Description |
---|---|---|
FALLBACKING |
Object | Value |
FALLBACKED |
Object | Value |
ERROR |
Object | Value |
The list of getUserMedia
or
shareScreen
Stream fallback states.
Type:
- Object
(static, constant) MEDIA_SOURCE :Object
- Description:
The list of available screensharing media sources configured in the
shareScreen
.
- Source:
- Since:
- 0.5.10
Properties:
Name | Type | Description |
---|---|---|
SCREEN |
String | Value |
WINDOW |
String | Value |
TAB |
String | Value |
TAB_AUDIO |
String | Value |
APPLICATION |
String | Value |
BROWSER |
String | Value |
CAMERA |
String | Value |
The list of available screensharing media sources configured in the
shareScreen
.
Type:
- Object
(static, constant) MEDIA_STATE
- Description:
The state of the media.
- Source:
- Since:
- 2.0
Properties:
Name | Type | Description |
---|---|---|
MUTED |
String | The state when the MediaTrack enabled flag is set to false. The MediaTrack is sending black frames. |
ACTIVE |
String | The state when the MediaTrack enabled flag and active flag is set to true. The MediaTrack is sending frames with content. |
STOPPED |
String | The state when the MediaTrack active flag is false. The MediaTrack is not sending any frames. |
UNAVAILABLE |
String | The state when the MediaTrack is no longer available or has been disposed. |
The state of the media.
(static, constant) MEDIA_STATUS :Object
- Description:
The status of media on the stream.
- Source:
- Since:
- 1.0
Properties:
Name | Type | Description |
---|---|---|
MUTED |
number | Value |
ACTIVE |
number | Value |
UNAVAILABLE |
number | Value |
The status of media on the stream.
Type:
- Object
(static, constant) MEDIA_TYPE
- Description:
The list of media types.
- Source:
- Since:
- 2.0
Properties:
Name | Type | Description |
---|---|---|
AUDIO_MIC |
String | Audio from a microphone. |
VIDEO_CAMERA |
String | Video from a Camera of any type. |
VIDEO_SCREEN |
String | Video of the Screen captured for screen sharing. |
VIDEO_OTHER |
String | Video from source other than Camera. |
AUDIO |
String | Audio from an unspecified MediaType. |
VIDEO |
String | Video from an unspecified MediaType. |
The list of media types.
(static, constant) PEER_CERTIFICATE :Object
- Description:
Learn more about how ICE works in this article here.
The list of available Peer connection certificates cryptographic algorithm to use.
- Source:
- Since:
- 0.6.18
Properties:
Name | Type | Description |
---|---|---|
RSA |
String | Value |
ECDSA |
String | Value |
AUTO |
String | Value |
Learn more about how ICE works in this article here.The list of available Peer connection certificates cryptographic algorithm to use.
Type:
- Object
(static, constant) PEER_CONNECTION_STATE :Object
- Description:
Learn more about how ICE works in this article here.
The list of Peer connection session description exchanging states.
- Source:
- Since:
- 0.5.0
Properties:
Name | Type | Description |
---|---|---|
STABLE |
String | Value |
HAVE_LOCAL_OFFER |
String | Value |
HAVE_REMOTE_OFFER |
String | Value |
CLOSED |
String | Value |
CONNECTING |
String | Value |
CONNECTED |
String | Value |
FAILED |
String | Value |
DISCONNECTED |
String | Value |
Learn more about how ICE works in this article here.The list of Peer connection session description exchanging states.
Type:
- Object
(static, constant) READY_STATE_CHANGE :Object
- Description:
The list of Skylink
initOptions
ready states.
- Source:
- Since:
- 0.1.0
Properties:
Name | Type | Description |
---|---|---|
INIT |
number | Value |
LOADING |
number | Value |
COMPLETED |
number | Value |
ERROR |
number | Value |
The list of Skylink initOptions
ready states.
Type:
- Object
(static, constant) READY_STATE_CHANGE_ERROR :Object
- Description:
The list of Skylink
initOptions
ready state failure codes.
- Source:
- Since:
- 0.4.0
Properties:
Name | Type | Description |
---|---|---|
API_INVALID |
number | Value |
API_DOMAIN_NOT_MATCH |
number | Value |
API_CORS_DOMAIN_NOT_MATCH |
number | Value |
API_CREDENTIALS_INVALID |
number | Value |
API_CREDENTIALS_NOT_MATCH |
number | Value |
API_INVALID_PARENT_KEY |
number | Value |
API_NO_MEETING_RECORD_FOUND |
number | Value |
API_OVER_SEAT_LIMIT |
number | Value |
API_RETRIEVAL_FAILED |
number | Value |
API_WRONG_ACCESS_DOMAIN |
number | Value |
XML_HTTP_REQUEST_ERROR |
number | Value |
XML_HTTP_NO_REPONSE_ERROR |
number | Value |
NO_SOCKET_IO |
number | Value |
NO_XMLHTTPREQUEST_SUPPORT |
number | Value |
NO_WEBRTC_SUPPORT |
number | Value |
NO_PATH |
number | Value |
ADAPTER_NO_LOADED |
number | Value |
PARSE_CODECS |
number | Value |
The list of Skylink initOptions
ready state failure codes.
Type:
- Object
(static, constant) RECORDING_STATE :Object
- Description:
The list of recording states.
- Source:
- Since:
- 0.6.16
Properties:
Name | Type | Description |
---|---|---|
START |
number | Value |
STOP |
number | Value |
LINK |
number | Value |
ERROR |
number | Value |
The list of recording states.
Type:
- Object
(static, constant) RTCP_MUX_POLICY :Object
- Description:
Learn more about how ICE works in this article here.
The list of available Peer connection RTCP mux policies.
- Source:
- Since:
- 0.6.18
Properties:
Name | Type | Description |
---|---|---|
REQUIRE |
String | Value |
NEGOTIATE |
String | Value |
Learn more about how ICE works in this article here.The list of available Peer connection RTCP mux policies.
Type:
- Object
(static, constant) RTMP_STATE :Object
- Description:
The list of RTMP states.
- Source:
- Since:
- 0.6.34
Properties:
Name | Type | Description |
---|---|---|
START |
number | Value |
STOP |
number | Value |
ERROR |
number | Value |
The list of RTMP states.
Type:
- Object
(static, constant) SDP_SEMANTICS :Object
- Description:
The options available for SDP sematics while create a PeerConnection.
- Source:
- Since:
- 0.6.32
Properties:
Name | Type | Description |
---|---|---|
PLAN_B |
String | The value of option to prefer plan-b sdp. |
UNIFIED |
String | The value of option to prefer unified-plan sdp. |
The options available for SDP sematics while create a PeerConnection.
Type:
- Object
(static, constant) SM_PROTOCOL_VERSION :string
- Description:
Note that this is used only for SDK developer purposes.
The value of the current version of the Signaling socket message protocol.
Current version:2.1.0
- Source:
- Since:
- 0.6.0
Note that this is used only for SDK developer purposes.The value of the current version of the Signaling socket message protocol.
Current version:2.1.0
Type:
- string
(static, constant) SOCKET_ERROR :Object
- Description:
The list of
joinRoom
socket connection failure states.
- Source:
- Since:
- 0.5.6
Properties:
Name | Type | Description |
---|---|---|
CONNECTION_FAILED |
number | Value |
RECONNECTION_FAILED |
number | Value |
CONNECTION_ABORTED |
number | Value |
RECONNECTION_ABORTED |
number | Value |
RECONNECTION_ATTEMPT |
number | Value |
The list of joinRoom
socket connection failure states.
Type:
- Object
(static, constant) SOCKET_FALLBACK :Object
- Description:
The list of
joinRoom
socket connection reconnection states.
- Source:
- Since:
- 0.5.6
Properties:
Name | Type | Description |
---|---|---|
NON_FALLBACK |
String | Value |
FALLBACK_PORT |
String | Value |
FALLBACK_PORT_SSL |
String | Value |
LONG_POLLING |
String | Value |
LONG_POLLING_SSL |
String | Value |
The list of joinRoom
socket connection reconnection states.
Type:
- Object
(static, constant) SYSTEM_ACTION :Object
- Description:
The list of Signaling server reaction states during
joinRoom
.
- Source:
- Since:
- 0.5.1
Properties:
Name | Type | Description |
---|---|---|
WARNING |
String | Value |
REJECT |
String | Value |
LOCKED |
String | Value |
The list of Signaling server reaction states during joinRoom
.
Type:
- Object
(static, constant) SYSTEM_ACTION_REASON :Object
- Description:
The list of Signaling server reaction states reason of action code during
joinRoom
.
- Source:
- Since:
- 0.5.2
Properties:
Name | Type | Description |
---|---|---|
CREDENTIALS_EXPIRED |
String | Value |
CREDENTIALS_ERROR |
String | Value |
DUPLICATED_LOGIN |
String | Value |
ROOM_NOT_STARTED |
String | Value |
EXPIRED |
String | Value |
ROOM_LOCKED |
String | Value |
FAST_MESSAGE |
String | Value |
ROOM_CLOSING |
String | Value |
ROOM_CLOSED |
String | Value |
SERVER_ERROR |
String | Value |
KEY_ERROR |
String | Value |
The list of Signaling server reaction states reason of action code during
joinRoom
.
Type:
- Object
(static, constant) TURN_TRANSPORT :Object
- Description:
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 list of TURN network transport protocols options when constructing Peer connections configured in Skylinkquery option when constructing the Peer connection. When all protocols are selected, the ICE servers urls are duplicated with all protocols.
initOptions
. Example.urls
inital input: ["turn:server.com?transport=tcp"
,"turn:server1.com:3478"
,"turn:server.com?transport=udp"
]
- Source:
- Since:
- 0.5.4
Properties:
Name | Type | Description |
---|---|---|
TCP |
String | Value |
UDP |
String | Value |
ANY |
String | Value |
NONE |
String | Value |
ALL |
String | Value |
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 query option when constructing
the Peer connection. When all protocols are selected, the ICE servers urls are duplicated with all protocols.
The list of TURN network transport protocols options when constructing Peer connections
configured in Skylink initOptions
.
Example .urls
inital input: ["turn:server.com?transport=tcp"
,
"turn:server1.com:3478"
, "turn:server.com?transport=udp"
]
Type:
- Object
(static, constant) VIDEO_QUALITY :Object
- Description:
The options available for video and audio bitrates (kbps) quality.
- Source:
- Since:
- 0.6.32
Properties:
Name | Type | Description |
---|---|---|
HD |
Object | Value |
HQ |
Object | Value |
SQ |
Object | Value |
LQ |
Object | Value |
The options available for video and audio bitrates (kbps) quality.
Type:
- Object
(static, constant) VIDEO_RESOLUTION :Object
- Description:
Note that currently
The list of video resolutions sets configured in thegetUserMedia
method only configures the maximum resolution of the Stream due to browser interopability and support.getUserMedia
method.
- Source:
- Since:
- 0.5.6
Properties:
Name | Type | Description |
---|---|---|
QQVGA |
Object | Value |
HQVGA |
Object | Value |
QVGA |
Object | Value |
WQVGA |
Object | Value |
HVGA |
Object | Value |
VGA |
Object | Value |
WVGA |
Object | Value |
FWVGA |
Object | Value |
SVGA |
Object | Value |
DVGA |
Object | Value |
WSVGA |
Object | Value |
HD |
Object | Value |
HDPLUS |
Object | Value |
FHD |
Object | Value |
QHD |
Object | Value |
WQXGAPLUS |
Object | Value |
UHD |
Object | Value |
UHDPLUS |
Object | Value |
FUHD |
Object | Value |
QUHD |
Object | Value |
Note that currently getUserMedia
method only configures
the maximum resolution of the Stream due to browser interopability and support.
The list of
video resolutions sets configured in the getUserMedia
method.
Type:
- Object
Type Definitions
DT_PROTOCOL_VERSION
- Description:
Note that this is used only for SDK developer purposes.
The value of the current version of the data transfer protocol.
Current version:0.1.3
- Source:
- Since:
- 2.0.0
Note that this is used only for SDK developer purposes.The value of the current version of the data transfer protocol.
Current version:0.1.3
Type:
- string