Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Adds javadoc for previous commit.

yanas9d321df49efa
diff --git a/index.html b/index.html
index 196aff39fd..d9e6cef645 100644
--- a/index.html
+++ b/index.html
@@ -22,7 +22,7 @@
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
<script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
<script src="interface_config.js?v=5"></script>
- <script src="libs/app.bundle.js?v=117"></script>
+ <script src="libs/app.bundle.js?v=118"></script>
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
<link rel="stylesheet" href="css/font.css?v=7"/>
<link rel="stylesheet" href="css/toastr.css?v=1">
diff --git a/libs/app.bundle.js b/libs/app.bundle.js
index 98dcc0be0a..e7601910db 100644
--- a/libs/app.bundle.js
+++ b/libs/app.bundle.js
@@ -3352,7 +3352,9 @@ function registerListeners() {
AudioLevels.init();
});
+ // Listens for video interruption events.
APP.xmpp.addListener(XMPPEvents.CONNECTION_INTERRUPTED, VideoLayout.onVideoInterrupted);
+ // Listens for video restores events.
APP.xmpp.addListener(XMPPEvents.CONNECTION_RESTORED, VideoLayout.onVideoRestored);
}
@@ -8766,6 +8768,7 @@ var LargeVideo = {
},
/**
* Sets hover handlers for the large video container div.
+ *
* @param inHandler
* @param outHandler
*/
@@ -8774,6 +8777,11 @@ var LargeVideo = {
$('#largeVideoContainer').hover(inHandler, outHandler);
},
+ /**
+ * Enables/disables the filter indicating a video problem to the user.
+ *
+ * @param enable <tt>true</tt> to enable, <tt>false</tt> to disable
+ */
enableVideoProblemFilter: function (enable) {
$("#largeVideo").toggleClass("videoProblemFilter", enable);
}
@@ -10677,6 +10685,9 @@ var VideoLayout = (function (my) {
LargeVideo.setHover(inHandler, outHandler);
};
+ /**
+ * Indicates that the video has been interrupted.
+ */
my.onVideoInterrupted = function () {
LargeVideo.enableVideoProblemFilter(true);
var reconnectingKey = "connection.RECONNECTING";
@@ -10685,6 +10696,9 @@ var VideoLayout = (function (my) {
$('#videoConnectionMessage').css({display: "block"});
};
+ /**
+ * Indicates that the video has been restored.
+ */
my.onVideoRestored = function () {
LargeVideo.enableVideoProblemFilter(false);
$('#videoConnectionMessage').css({display: "none"});
@@ -13177,6 +13191,13 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
if (!(self && self.peerconnection)) return;
self.updateModifySourcesQueue();
};
+ /**
+ * The oniceconnectionstatechange event handler contains the code to execute when the iceconnectionstatechange event,
+ * of type Event, is received by this RTCPeerConnection. Such an event is sent when the value of
+ * RTCPeerConnection.iceConnectionState changes.
+ *
+ * @param event the event containing information about the change
+ */
this.peerconnection.oniceconnectionstatechange = function (event) {
if (!(self && self.peerconnection)) return;
self.updateModifySourcesQueue();
@@ -13184,6 +13205,7 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
case 'connected':
this.startTime = new Date();
+ // Informs interested parties that the connection has been restored.
if (this.peerconnection.signalingState === 'stable' && this.isreconnect)
self.eventEmitter.emit(XMPPEvents.CONNECTION_RESTORED);
this.isreconnect = false;
@@ -13192,6 +13214,7 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
case 'disconnected':
this.isreconnect = true;
this.stopTime = new Date();
+ // Informs interested parties that the connection has been interrupted.
if (this.peerconnection.signalingState === 'stable')
self.eventEmitter.emit(XMPPEvents.CONNECTION_INTERRUPTED);
break;
@@ -30061,7 +30084,9 @@ module.exports = {
},{}],116:[function(require,module,exports){
var XMPPEvents = {
CONNECTION_FAILED: "xmpp.connection.failed",
+ // Indicates an interrupted connection event.
CONNECTION_INTERRUPTED: "xmpp.connection.interrupted",
+ // Indicates a restored connection event.
CONNECTION_RESTORED: "xmpp.connection.restored",
CONFERENCE_CREATED: "xmpp.conferenceCreated.jingle",
CALL_INCOMING: "xmpp.callincoming.jingle",
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index 280c9928e9..c8cdf98de3 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -334,7 +334,9 @@ function registerListeners() {
AudioLevels.init();
});
+ // Listens for video interruption events.
APP.xmpp.addListener(XMPPEvents.CONNECTION_INTERRUPTED, VideoLayout.onVideoInterrupted);
+ // Listens for video restores events.
APP.xmpp.addListener(XMPPEvents.CONNECTION_RESTORED, VideoLayout.onVideoRestored);
}
diff --git a/modules/UI/videolayout/LargeVideo.js b/modules/UI/videolayout/LargeVideo.js
index f96c534ca8..8ddd2ff14c 100644
--- a/modules/UI/videolayout/LargeVideo.js
+++ b/modules/UI/videolayout/LargeVideo.js
@@ -655,6 +655,7 @@ var LargeVideo = {
},
/**
* Sets hover handlers for the large video container div.
+ *
* @param inHandler
* @param outHandler
*/
@@ -663,6 +664,11 @@ var LargeVideo = {
$('#largeVideoContainer').hover(inHandler, outHandler);
},
+ /**
+ * Enables/disables the filter indicating a video problem to the user.
+ *
+ * @param enable <tt>true</tt> to enable, <tt>false</tt> to disable
+ */
enableVideoProblemFilter: function (enable) {
$("#largeVideo").toggleClass("videoProblemFilter", enable);
}
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index 06b5527c60..39302271fe 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -891,6 +891,9 @@ var VideoLayout = (function (my) {
LargeVideo.setHover(inHandler, outHandler);
};
+ /**
+ * Indicates that the video has been interrupted.
+ */
my.onVideoInterrupted = function () {
LargeVideo.enableVideoProblemFilter(true);
var reconnectingKey = "connection.RECONNECTING";
@@ -899,6 +902,9 @@ var VideoLayout = (function (my) {
$('#videoConnectionMessage').css({display: "block"});
};
+ /**
+ * Indicates that the video has been restored.
+ */
my.onVideoRestored = function () {
LargeVideo.enableVideoProblemFilter(false);
$('#videoConnectionMessage').css({display: "none"});
diff --git a/modules/xmpp/JingleSession.js b/modules/xmpp/JingleSession.js
index 9a6abff2c6..17086013b2 100644
--- a/modules/xmpp/JingleSession.js
+++ b/modules/xmpp/JingleSession.js
@@ -122,6 +122,13 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
if (!(self && self.peerconnection)) return;
self.updateModifySourcesQueue();
};
+ /**
+ * The oniceconnectionstatechange event handler contains the code to execute when the iceconnectionstatechange event,
+ * of type Event, is received by this RTCPeerConnection. Such an event is sent when the value of
+ * RTCPeerConnection.iceConnectionState changes.
+ *
+ * @param event the event containing information about the change
+ */
this.peerconnection.oniceconnectionstatechange = function (event) {
if (!(self && self.peerconnection)) return;
self.updateModifySourcesQueue();
@@ -129,6 +136,7 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
case 'connected':
this.startTime = new Date();
+ // Informs interested parties that the connection has been restored.
if (this.peerconnection.signalingState === 'stable' && this.isreconnect)
self.eventEmitter.emit(XMPPEvents.CONNECTION_RESTORED);
this.isreconnect = false;
@@ -137,6 +145,7 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
case 'disconnected':
this.isreconnect = true;
this.stopTime = new Date();
+ // Informs interested parties that the connection has been interrupted.
if (this.peerconnection.signalingState === 'stable')
self.eventEmitter.emit(XMPPEvents.CONNECTION_INTERRUPTED);
break;
diff --git a/service/xmpp/XMPPEvents.js b/service/xmpp/XMPPEvents.js
index 350b952ca5..5ae1813c00 100644
--- a/service/xmpp/XMPPEvents.js
+++ b/service/xmpp/XMPPEvents.js
@@ -1,6 +1,8 @@
var XMPPEvents = {
CONNECTION_FAILED: "xmpp.connection.failed",
+ // Indicates an interrupted connection event.
CONNECTION_INTERRUPTED: "xmpp.connection.interrupted",
+ // Indicates a restored connection event.
CONNECTION_RESTORED: "xmpp.connection.restored",
CONFERENCE_CREATED: "xmpp.conferenceCreated.jingle",
CALL_INCOMING: "xmpp.callincoming.jingle",