Extends
Members
(static) constructorParams
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
certificateKeyType |
module:elements/complexTypes.CertificateKeyType |
<optional> |
Define the type of the certificate used in dtls |
mediaPipeline |
module:core.MediaPipeline | the MediaPipeline to which the endpoint belongs | |
useDataChannels |
external:Boolean |
<optional> |
Activate data channels support |
(static) events
Methods
(static) addIceCandidate(candidate, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
candidate |
module:elements/complexTypes.IceCandidate | Remote ICE candidate | |
callback |
module:elements.WebRtcEndpoint~addIceCandidateCallback |
<optional> |
Returns:
- Type
- external:Promise
(static) closeDataChannel(channelId, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
channelId |
external:Integer | The channel identifier | |
callback |
module:elements.WebRtcEndpoint~closeDataChannelCallback |
<optional> |
Returns:
- Type
- external:Promise
(static) createDataChannel(labelopt, orderedopt, maxPacketLifeTimeopt, maxRetransmitsopt, protocolopt, callbackopt) → {external:Promise}
- Reliable mode guarantees the transmission of messages and also the order in which they are delivered. This takes extra overhead, thus potentially making this mode slower.
- Unreliable mode does not guarantee every message will get to the other side nor what order they get there. This removes the overhead, allowing this mode to work much faster.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
label |
external:String |
<optional> |
Channel's label |
ordered |
external:Boolean |
<optional> |
If the data channel should guarantee order or not. If true, and maxPacketLifeTime and maxRetransmits have not been provided, reliable mode is activated. |
maxPacketLifeTime |
external:Integer |
<optional> |
The time window (in milliseconds) during which transmissions and
retransmissions may take place in unreliable mode.
Note This forces unreliable mode, even if ordered has been activated |
maxRetransmits |
external:Integer |
<optional> |
maximum number of retransmissions that are attempted in unreliable
mode.
Note This forces unreliable mode, even if ordered has been activated |
protocol |
external:String |
<optional> |
Name of the subprotocol used for data communication |
callback |
module:elements.WebRtcEndpoint~createDataChannelCallback |
<optional> |
Returns:
- Type
- external:Promise
(static) gatherCandidates(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:elements.WebRtcEndpoint~gatherCandidatesCallback |
<optional> |
Returns:
- Type
- external:Promise
getChildren(callbackopt) → {external:Promise}
MediaObject
.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.MediaObject~getChildrenCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getChilds(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.MediaObject~getChildsCallback |
<optional> |
- Inherited From:
- Deprecated:
- (Use children instead) children of this
MediaObject
.
- (Use children instead) children of this
- Source:
Returns:
- Type
- external:Promise
getConnectionState(callbackopt) → {external:Promise}
- CONNECTED
- DISCONNECTED
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.BaseRtpEndpoint~getConnectionStateCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getCreationTime(callbackopt) → {external:Promise}
MediaObject
creation time in seconds since Epoch.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.MediaObject~getCreationTimeCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getICECandidatePairs(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:elements.WebRtcEndpoint~getICECandidatePairsCallback |
<optional> |
Returns:
- Type
- external:Promise
getIceConnectionState(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:elements.WebRtcEndpoint~getIceConnectionStateCallback |
<optional> |
Returns:
- Type
- external:Promise
getMaxAudioRecvBandwidth(callbackopt) → {external:Promise}
Note This has
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.SdpEndpoint~getMaxAudioRecvBandwidthCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getMaxOuputBitrate(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.MediaElement~getMaxOuputBitrateCallback |
<optional> |
- Inherited From:
- Deprecated:
- Deprecated due to a typo. Use maxOutputBitrate instead of this function. Maximum video bandwidth for transcoding. 0 = unlimited. Unit: bps(bits per second). Default value: MAXINT
- Source:
Returns:
- Type
- external:Promise
getMaxOutputBitrate(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.MediaElement~getMaxOutputBitrateCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getMaxVideoRecvBandwidth(callbackopt) → {external:Promise}
Note This has to be set before the SDP is generated.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.SdpEndpoint~getMaxVideoRecvBandwidthCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getMaxVideoSendBandwidth(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.BaseRtpEndpoint~getMaxVideoSendBandwidthCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getMediaPipeline(callbackopt) → {external:Promise}
MediaObject
belongs. It returns itself when invoked for a
pipeline object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.MediaObject~getMediaPipelineCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getMediaState(callbackopt) → {external:Promise}
- CONNECTED: There is an RTCP flow.
- DISCONNECTED: No RTCP packets have been received for at least
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.BaseRtpEndpoint~getMediaStateCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getMinOuputBitrate(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.MediaElement~getMinOuputBitrateCallback |
<optional> |
- Inherited From:
- Deprecated:
- Deprecated due to a typo. Use minOutputBitrate instead of this function. Minimum video bandwidth for transcoding. Unit: bps(bits per second). Default value: 0
- Source:
Returns:
- Type
- external:Promise
getMinOutputBitrate(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.MediaElement~getMinOutputBitrateCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getMinVideoRecvBandwidth(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.BaseRtpEndpoint~getMinVideoRecvBandwidthCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getMinVideoSendBandwidth(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.BaseRtpEndpoint~getMinVideoSendBandwidthCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getName(callbackopt) → {external:Promise}
MediaObject
's name. This is just a comodity to simplify
developers' life debugging, it is not used internally for indexing nor
idenfiying the objects. By default, it's the object's ID.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.MediaObject~getNameCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getParent(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.MediaObject~getParentCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getRembParams(callbackopt) → {external:Promise
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.BaseRtpEndpoint~getRembParamsCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getSendTagsInEvents(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:core/abstracts.MediaObject~getSendTagsInEventsCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
getStunServerAddress(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:elements.WebRtcEndpoint~getStunServerAddressCallback |
<optional> |
Returns:
- Type
- external:Promise
getStunServerPort(callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:elements.WebRtcEndpoint~getStunServerPortCallback |
<optional> |
Returns:
- Type
- external:Promise
getTurnUrl(callbackopt) → {external:Promise}
user:password@address:port(?transport=[udp|tcp|tls])
.address
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
module:elements.WebRtcEndpoint~getTurnUrlCallback |
<optional> |
Returns:
- Type
- external:Promise
setMaxAudioRecvBandwidth(maxAudioRecvBandwidth, callbackopt) → {external:Promise}
Note This has
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
maxAudioRecvBandwidth |
external:Integer | ||
callback |
module:core/abstracts.SdpEndpoint~setMaxAudioRecvBandwidthCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
setMaxOuputBitrate(maxOuputBitrate, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
maxOuputBitrate |
external:Integer | ||
callback |
module:core/abstracts.MediaElement~setMaxOuputBitrateCallback |
<optional> |
- Inherited From:
- Deprecated:
- Deprecated due to a typo. Use maxOutputBitrate instead of this function. Maximum video bandwidth for transcoding. 0 = unlimited. Unit: bps(bits per second). Default value: MAXINT
- Source:
Returns:
- Type
- external:Promise
setMaxOutputBitrate(maxOutputBitrate, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
maxOutputBitrate |
external:Integer | ||
callback |
module:core/abstracts.MediaElement~setMaxOutputBitrateCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
setMaxVideoRecvBandwidth(maxVideoRecvBandwidth, callbackopt) → {external:Promise}
Note This has to be set before the SDP is generated.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
maxVideoRecvBandwidth |
external:Integer | ||
callback |
module:core/abstracts.SdpEndpoint~setMaxVideoRecvBandwidthCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
setMaxVideoSendBandwidth(maxVideoSendBandwidth, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
maxVideoSendBandwidth |
external:Integer | ||
callback |
module:core/abstracts.BaseRtpEndpoint~setMaxVideoSendBandwidthCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
setMinOuputBitrate(minOuputBitrate, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
minOuputBitrate |
external:Integer | ||
callback |
module:core/abstracts.MediaElement~setMinOuputBitrateCallback |
<optional> |
- Inherited From:
- Deprecated:
- Deprecated due to a typo. Use minOutputBitrate instead of this function. Minimum video bandwidth for transcoding. Unit: bps(bits per second). Default value: 0
- Source:
Returns:
- Type
- external:Promise
setMinOutputBitrate(minOutputBitrate, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
minOutputBitrate |
external:Integer | ||
callback |
module:core/abstracts.MediaElement~setMinOutputBitrateCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
setMinVideoRecvBandwidth(minVideoRecvBandwidth, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
minVideoRecvBandwidth |
external:Integer | ||
callback |
module:core/abstracts.BaseRtpEndpoint~setMinVideoRecvBandwidthCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
setMinVideoSendBandwidth(minVideoSendBandwidth, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
minVideoSendBandwidth |
external:Integer | ||
callback |
module:core/abstracts.BaseRtpEndpoint~setMinVideoSendBandwidthCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
setName(name, callbackopt) → {external:Promise}
MediaObject
's name. This is just a comodity to simplify
developers' life debugging, it is not used internally for indexing nor
idenfiying the objects. By default, it's the object's ID.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
external:String | ||
callback |
module:core/abstracts.MediaObject~setNameCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
setRembParams(rembParams, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
rembParams |
module:core/complexTypes.RembParams | ||
callback |
module:core/abstracts.BaseRtpEndpoint~setRembParamsCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
setSendTagsInEvents(sendTagsInEvents, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
sendTagsInEvents |
external:Boolean | ||
callback |
module:core/abstracts.MediaObject~setSendTagsInEventsCallback |
<optional> |
- Inherited From:
- Source:
Returns:
- Type
- external:Promise
setStunServerAddress(stunServerAddress, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
stunServerAddress |
external:String | ||
callback |
module:elements.WebRtcEndpoint~setStunServerAddressCallback |
<optional> |
Returns:
- Type
- external:Promise
setStunServerPort(stunServerPort, callbackopt) → {external:Promise}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
stunServerPort |
external:Integer | ||
callback |
module:elements.WebRtcEndpoint~setStunServerPortCallback |
<optional> |
Returns:
- Type
- external:Promise
setTurnUrl(turnUrl, callbackopt) → {external:Promise}
user:password@address:port(?transport=[udp|tcp|tls])
.address
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
turnUrl |
external:String | ||
callback |
module:elements.WebRtcEndpoint~setTurnUrlCallback |
<optional> |
Returns:
- Type
- external:Promise
Type Definitions
addIceCandidateCallback(error)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error |
closeDataChannelCallback(error)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error |
createDataChannelCallback(error)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error |
gatherCandidatesCallback(error)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error |
getICECandidatePairsCallback(error, result)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error | |
result |
module:elements/complexTypes.IceCandidatePair |
getIceConnectionStateCallback(error, result)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error | |
result |
module:elements/complexTypes.IceConnection |
getStunServerAddressCallback(error, result)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error | |
result |
external:String |
getStunServerPortCallback(error, result)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error | |
result |
external:Integer |
getTurnUrlCallback(error, result)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error | |
result |
external:String |
setStunServerAddressCallback(error)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error |
setStunServerPortCallback(error)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error |
setTurnUrlCallback(error)
Parameters:
Name | Type | Description |
---|---|---|
error |
external:Error |