|
|
@@ -3352,7 +3352,9 @@ function registerListeners() {
|
|
3352
|
3352
|
AudioLevels.init();
|
|
3353
|
3353
|
});
|
|
3354
|
3354
|
|
|
|
3355
|
+ // Listens for video interruption events.
|
|
3355
|
3356
|
APP.xmpp.addListener(XMPPEvents.CONNECTION_INTERRUPTED, VideoLayout.onVideoInterrupted);
|
|
|
3357
|
+ // Listens for video restores events.
|
|
3356
|
3358
|
APP.xmpp.addListener(XMPPEvents.CONNECTION_RESTORED, VideoLayout.onVideoRestored);
|
|
3357
|
3359
|
}
|
|
3358
|
3360
|
|
|
|
@@ -8766,6 +8768,7 @@ var LargeVideo = {
|
|
8766
|
8768
|
},
|
|
8767
|
8769
|
/**
|
|
8768
|
8770
|
* Sets hover handlers for the large video container div.
|
|
|
8771
|
+ *
|
|
8769
|
8772
|
* @param inHandler
|
|
8770
|
8773
|
* @param outHandler
|
|
8771
|
8774
|
*/
|
|
|
@@ -8774,6 +8777,11 @@ var LargeVideo = {
|
|
8774
|
8777
|
$('#largeVideoContainer').hover(inHandler, outHandler);
|
|
8775
|
8778
|
},
|
|
8776
|
8779
|
|
|
|
8780
|
+ /**
|
|
|
8781
|
+ * Enables/disables the filter indicating a video problem to the user.
|
|
|
8782
|
+ *
|
|
|
8783
|
+ * @param enable <tt>true</tt> to enable, <tt>false</tt> to disable
|
|
|
8784
|
+ */
|
|
8777
|
8785
|
enableVideoProblemFilter: function (enable) {
|
|
8778
|
8786
|
$("#largeVideo").toggleClass("videoProblemFilter", enable);
|
|
8779
|
8787
|
}
|
|
|
@@ -10677,6 +10685,9 @@ var VideoLayout = (function (my) {
|
|
10677
|
10685
|
LargeVideo.setHover(inHandler, outHandler);
|
|
10678
|
10686
|
};
|
|
10679
|
10687
|
|
|
|
10688
|
+ /**
|
|
|
10689
|
+ * Indicates that the video has been interrupted.
|
|
|
10690
|
+ */
|
|
10680
|
10691
|
my.onVideoInterrupted = function () {
|
|
10681
|
10692
|
LargeVideo.enableVideoProblemFilter(true);
|
|
10682
|
10693
|
var reconnectingKey = "connection.RECONNECTING";
|
|
|
@@ -10685,6 +10696,9 @@ var VideoLayout = (function (my) {
|
|
10685
|
10696
|
$('#videoConnectionMessage').css({display: "block"});
|
|
10686
|
10697
|
};
|
|
10687
|
10698
|
|
|
|
10699
|
+ /**
|
|
|
10700
|
+ * Indicates that the video has been restored.
|
|
|
10701
|
+ */
|
|
10688
|
10702
|
my.onVideoRestored = function () {
|
|
10689
|
10703
|
LargeVideo.enableVideoProblemFilter(false);
|
|
10690
|
10704
|
$('#videoConnectionMessage').css({display: "none"});
|
|
|
@@ -13177,6 +13191,13 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
|
|
13177
|
13191
|
if (!(self && self.peerconnection)) return;
|
|
13178
|
13192
|
self.updateModifySourcesQueue();
|
|
13179
|
13193
|
};
|
|
|
13194
|
+ /**
|
|
|
13195
|
+ * The oniceconnectionstatechange event handler contains the code to execute when the iceconnectionstatechange event,
|
|
|
13196
|
+ * of type Event, is received by this RTCPeerConnection. Such an event is sent when the value of
|
|
|
13197
|
+ * RTCPeerConnection.iceConnectionState changes.
|
|
|
13198
|
+ *
|
|
|
13199
|
+ * @param event the event containing information about the change
|
|
|
13200
|
+ */
|
|
13180
|
13201
|
this.peerconnection.oniceconnectionstatechange = function (event) {
|
|
13181
|
13202
|
if (!(self && self.peerconnection)) return;
|
|
13182
|
13203
|
self.updateModifySourcesQueue();
|
|
|
@@ -13184,6 +13205,7 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
|
|
13184
|
13205
|
case 'connected':
|
|
13185
|
13206
|
this.startTime = new Date();
|
|
13186
|
13207
|
|
|
|
13208
|
+ // Informs interested parties that the connection has been restored.
|
|
13187
|
13209
|
if (this.peerconnection.signalingState === 'stable' && this.isreconnect)
|
|
13188
|
13210
|
self.eventEmitter.emit(XMPPEvents.CONNECTION_RESTORED);
|
|
13189
|
13211
|
this.isreconnect = false;
|
|
|
@@ -13192,6 +13214,7 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
|
|
13192
|
13214
|
case 'disconnected':
|
|
13193
|
13215
|
this.isreconnect = true;
|
|
13194
|
13216
|
this.stopTime = new Date();
|
|
|
13217
|
+ // Informs interested parties that the connection has been interrupted.
|
|
13195
|
13218
|
if (this.peerconnection.signalingState === 'stable')
|
|
13196
|
13219
|
self.eventEmitter.emit(XMPPEvents.CONNECTION_INTERRUPTED);
|
|
13197
|
13220
|
break;
|
|
|
@@ -30061,7 +30084,9 @@ module.exports = {
|
|
30061
|
30084
|
},{}],116:[function(require,module,exports){
|
|
30062
|
30085
|
var XMPPEvents = {
|
|
30063
|
30086
|
CONNECTION_FAILED: "xmpp.connection.failed",
|
|
|
30087
|
+ // Indicates an interrupted connection event.
|
|
30064
|
30088
|
CONNECTION_INTERRUPTED: "xmpp.connection.interrupted",
|
|
|
30089
|
+ // Indicates a restored connection event.
|
|
30065
|
30090
|
CONNECTION_RESTORED: "xmpp.connection.restored",
|
|
30066
|
30091
|
CONFERENCE_CREATED: "xmpp.conferenceCreated.jingle",
|
|
30067
|
30092
|
CALL_INCOMING: "xmpp.callincoming.jingle",
|