The main module callstatskurento
is a function that receives parameters for callstats.initialize()
.
The main module also exports the following functions:
setCallstatsModule()
setKurentoUtils()
callstatskurento(AppID, AppSecretOrTokenGenerator, localUserID [, csInitCallback [, csStatsCallback [, configParams]]])
Params | Argument | Type | Description |
---|---|---|---|
module |
Required | function |
The callstats main module. |
By default this library uses window.callstats
(assuming that the callstats.io library has been previously loaded via a <script>
tag.
However, the callstats.io library can also be loaded using loaders such as require.js meaning that it may be not exposed as a global window.callstats
. In that case, callstatskurento.setCallstatsModule()
can be used to provide the callstats-kurento library with the callstats.io main module.
Params | Argument | Type | Description |
---|---|---|---|
module |
Required | function |
The kurentoUtils main module. |
By default this library uses window.kurentoUtils
(assuming that the kurento-utils library has been previously loaded via a <script>
tag.
However, the kurentoUtils library can also be loaded using loaders such as require.js meaning that it may be not exposed as a global window.kurentoUtils
. In that case, callstatskurento.setKurentoUtils()
can be used to provide the callstats-kurento library with the kurentoUtils main module.
Creates a new App
instance.
Creates a new Conference
instance.
Create a new Conference
instance.
Properties | Argument | Type | Description |
---|---|---|---|
conferenceID |
Required | String |
The conference ID |
app |
Required | App |
|
callstats |
Optional | Object |
|
logger |
Optional | Logger instance |
A getter that provides the already initialized callstats
object.
A getter that provides the already initialized kurentoUtils
object.
Create a new Peer
instance, and initialize it.
Note: Conference.prototype.handlePeer()
is preferred over this method.
Params | Argument | Type | Description |
---|---|---|---|
webRtcPeer |
Required | kurento.WebRtcPeer |
a kurentoUtils.WebRtcPeer instance. |
remoteUserID |
Required | string , object |
See remoteUserID |
Same as Conference.prototype.createPeer()
but also adds the new Peer
instance to the list of peers
handled by the Call
instance.
Params | Argument | Type | Description |
---|---|---|---|
webRtcPeer |
Required | kurento.WebRtcPeer |
a kurentoUtils.WebRtcPeer instance. |
remoteUserID |
Required | string , object |
See remoteUserID |
See https://www.callstats.io/api/#callstats-addnewfabric
Note: conferenceID
parameter is automatically provided by getting the Conference.prototype.conferenceID
variable.
See https://www.callstats.io/api/#callstats-associatemstwithuserid
Note: conferenceID
parameter is automatically provided by getting the Conference.prototype.conferenceID
variable.
*TODO: Add missing link to callstats documentation for reportUserIDChange()
Note: conferenceID
parameter is automatically provided by getting the Conference.prototype.conferenceID
variable.
See https://www.callstats.io/api/#callstats-senduserfeedback
Note: conferenceID
parameter is automatically provided by getting the Conference.prototype.conferenceID
variable.
See https://www.callstats.io/api/#callstats-sendfabricevent
Note: conferenceID
parameter is automatically provided by getting the Conference.prototype.conferenceID
variable.
See https://www.callstats.io/api/#callstats-reporterror
Note: conferenceID
parameter is automatically provided by getting the Conference.prototype.conferenceID
variable.
Create a new Peer
instance.
Properties | Argument | Type | Description |
---|---|---|---|
conferenceID |
Required | String |
The conference ID |
webRtcPeer |
Required | Object |
The kurento.WebRtcPeer instance. |
remoteUserID |
Required | String , Object |
Getter for the kurentoUtils
module.
Alias to this.conference.kurentoUtils
Getter for the RTCPeerConnection
object.
Alias to this.webRtcPeer.peerConnection
Initializes a Peer
instance, with the given remoteUserID
.
Properties | Argument | Type | Description |
---|---|---|---|
remoteUserID |
Required | String |
The peer user ID |
Calls this.conference.addNewFabric()
See Conference.prototype.sendFabricEvent()
, with pcObject
set to Peer.prototype.peerConnection
See Conference.prototype.associateMst()
, with pcObject
set to Peer.prototype.peerConnection
See Conference.prototype.reportUserIDChange()
, with pcObject
set to Peer.prototype.peerConnection
See Conference.prototype.reportError()
, with pcObject
set to Peer.prototype.peerConnection
Inspects all SSRCs in description
and calls Peer.prototype.associateMst
with the determined SSRC
and provided usageLabel
, associatedVideoTag
parameters.