|
@@ -495,6 +495,16 @@ JitsiConference.prototype.getPhonePin = function () {
|
495
|
495
|
return null;
|
496
|
496
|
}
|
497
|
497
|
|
|
498
|
+/**
|
|
499
|
+ * Returns the connection state for the current room. Its ice connection state
|
|
500
|
+ * for its session.
|
|
501
|
+ */
|
|
502
|
+JitsiConference.prototype.getConnectionState = function () {
|
|
503
|
+ if(this.room)
|
|
504
|
+ return this.room.getConnectionState();
|
|
505
|
+ return null;
|
|
506
|
+}
|
|
507
|
+
|
498
|
508
|
/**
|
499
|
509
|
* Setups the listeners needed for the conference.
|
500
|
510
|
* @param conference the conference
|
|
@@ -6543,6 +6553,15 @@ ChatRoom.prototype.getPhonePin = function () {
|
6543
|
6553
|
return this.phonePin;
|
6544
|
6554
|
}
|
6545
|
6555
|
|
|
6556
|
+/**
|
|
6557
|
+ * Returns the connection state for the current session.
|
|
6558
|
+ */
|
|
6559
|
+ChatRoom.prototype.getConnectionState = function () {
|
|
6560
|
+ if(!this.session)
|
|
6561
|
+ return null;
|
|
6562
|
+ return this.session.getIceConnectionState();
|
|
6563
|
+}
|
|
6564
|
+
|
6546
|
6565
|
module.exports = ChatRoom;
|
6547
|
6566
|
|
6548
|
6567
|
}).call(this,"/modules/xmpp/ChatRoom.js")
|
|
@@ -8312,6 +8331,14 @@ JingleSessionPC.prototype.remoteStreamAdded = function (data, times) {
|
8312
|
8331
|
}
|
8313
|
8332
|
}
|
8314
|
8333
|
|
|
8334
|
+/**
|
|
8335
|
+ * Returns the ice connection state for the peer connection.
|
|
8336
|
+ * @returns the ice connection state for the peer connection.
|
|
8337
|
+ */
|
|
8338
|
+JingleSessionPC.prototype.getIceConnectionState = function () {
|
|
8339
|
+ return this.peerconnection.iceConnectionState;
|
|
8340
|
+}
|
|
8341
|
+
|
8315
|
8342
|
module.exports = JingleSessionPC;
|
8316
|
8343
|
|
8317
|
8344
|
}).call(this,"/modules/xmpp/JingleSessionPC.js")
|