Merge branch 'lib-jitsi-meet' of github.com:jitsi/jitsi-meet into lib-jitsi-meet
This commit is contained in:
commit
05badd0b94
|
@ -496,6 +496,16 @@ JitsiConference.prototype.sendTones = function (tones, duration, pause) {
|
|||
this.dtmfManager.sendTones(tones, duration, pause);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns the connection state for the current room. Its ice connection state
|
||||
* for its session.
|
||||
*/
|
||||
JitsiConference.prototype.getConnectionState = function () {
|
||||
if(this.room)
|
||||
return this.room.getConnectionState();
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setups the listeners needed for the conference.
|
||||
* @param conference the conference
|
||||
|
|
|
@ -498,6 +498,16 @@ JitsiConference.prototype.sendTones = function (tones, duration, pause) {
|
|||
this.dtmfManager.sendTones(tones, duration, pause);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns the connection state for the current room. Its ice connection state
|
||||
* for its session.
|
||||
*/
|
||||
JitsiConference.prototype.getConnectionState = function () {
|
||||
if(this.room)
|
||||
return this.room.getConnectionState();
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setups the listeners needed for the conference.
|
||||
* @param conference the conference
|
||||
|
@ -6501,6 +6511,15 @@ ChatRoom.prototype.getJidBySSRC = function (ssrc) {
|
|||
return this.session.getSsrcOwner(ssrc);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns the connection state for the current session.
|
||||
*/
|
||||
ChatRoom.prototype.getConnectionState = function () {
|
||||
if(!this.session)
|
||||
return null;
|
||||
return this.session.getIceConnectionState();
|
||||
}
|
||||
|
||||
module.exports = ChatRoom;
|
||||
|
||||
}).call(this,"/modules/xmpp/ChatRoom.js")
|
||||
|
@ -8270,6 +8289,14 @@ JingleSessionPC.prototype.remoteStreamAdded = function (data, times) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the ice connection state for the peer connection.
|
||||
* @returns the ice connection state for the peer connection.
|
||||
*/
|
||||
JingleSessionPC.prototype.getIceConnectionState = function () {
|
||||
return this.peerconnection.iceConnectionState;
|
||||
}
|
||||
|
||||
module.exports = JingleSessionPC;
|
||||
|
||||
}).call(this,"/modules/xmpp/JingleSessionPC.js")
|
||||
|
|
|
@ -639,4 +639,13 @@ ChatRoom.prototype.getJidBySSRC = function (ssrc) {
|
|||
return this.session.getSsrcOwner(ssrc);
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns the connection state for the current session.
|
||||
*/
|
||||
ChatRoom.prototype.getConnectionState = function () {
|
||||
if(!this.session)
|
||||
return null;
|
||||
return this.session.getIceConnectionState();
|
||||
}
|
||||
|
||||
module.exports = ChatRoom;
|
||||
|
|
|
@ -1626,4 +1626,12 @@ JingleSessionPC.prototype.remoteStreamAdded = function (data, times) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the ice connection state for the peer connection.
|
||||
* @returns the ice connection state for the peer connection.
|
||||
*/
|
||||
JingleSessionPC.prototype.getIceConnectionState = function () {
|
||||
return this.peerconnection.iceConnectionState;
|
||||
}
|
||||
|
||||
module.exports = JingleSessionPC;
|
||||
|
|
Loading…
Reference in New Issue