Merge branch 'lib-jitsi-meet' of github.com:jitsi/jitsi-meet into lib-jitsi-meet

This commit is contained in:
hristoterezov 2015-12-21 16:02:31 -06:00
commit 05badd0b94
4 changed files with 54 additions and 0 deletions

View File

@ -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

View File

@ -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")

View File

@ -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;

View File

@ -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;