Kaynağa Gözat

Adds javadoc for previous commit.

master
yanas 10 yıl önce
ebeveyn
işleme
9d321df49e

+ 1
- 1
index.html Dosyayı Görüntüle

@@ -22,7 +22,7 @@
22 22
     <script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
23 23
     <script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
24 24
     <script src="interface_config.js?v=5"></script>
25
-    <script src="libs/app.bundle.js?v=117"></script>
25
+    <script src="libs/app.bundle.js?v=118"></script>
26 26
     <script src="analytics.js?v=1"></script><!-- google analytics plugin -->
27 27
     <link rel="stylesheet" href="css/font.css?v=7"/>
28 28
     <link rel="stylesheet" href="css/toastr.css?v=1">

+ 25
- 0
libs/app.bundle.js Dosyayı Görüntüle

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

+ 2
- 0
modules/UI/UI.js Dosyayı Görüntüle

@@ -334,7 +334,9 @@ function registerListeners() {
334 334
         AudioLevels.init();
335 335
     });
336 336
 
337
+    // Listens for video interruption events.
337 338
     APP.xmpp.addListener(XMPPEvents.CONNECTION_INTERRUPTED, VideoLayout.onVideoInterrupted);
339
+    // Listens for video restores events.
338 340
     APP.xmpp.addListener(XMPPEvents.CONNECTION_RESTORED, VideoLayout.onVideoRestored);
339 341
 }
340 342
 

+ 6
- 0
modules/UI/videolayout/LargeVideo.js Dosyayı Görüntüle

@@ -655,6 +655,7 @@ var LargeVideo = {
655 655
     },
656 656
     /**
657 657
      * Sets hover handlers for the large video container div.
658
+     *
658 659
      * @param inHandler
659 660
      * @param outHandler
660 661
      */
@@ -663,6 +664,11 @@ var LargeVideo = {
663 664
         $('#largeVideoContainer').hover(inHandler, outHandler);
664 665
     },
665 666
 
667
+    /**
668
+     * Enables/disables the filter indicating a video problem to the user.
669
+     *
670
+     * @param enable <tt>true</tt> to enable, <tt>false</tt> to disable
671
+     */
666 672
     enableVideoProblemFilter: function (enable) {
667 673
         $("#largeVideo").toggleClass("videoProblemFilter", enable);
668 674
     }

+ 6
- 0
modules/UI/videolayout/VideoLayout.js Dosyayı Görüntüle

@@ -891,6 +891,9 @@ var VideoLayout = (function (my) {
891 891
         LargeVideo.setHover(inHandler, outHandler);
892 892
     };
893 893
 
894
+    /**
895
+     * Indicates that the video has been interrupted.
896
+     */
894 897
     my.onVideoInterrupted = function () {
895 898
         LargeVideo.enableVideoProblemFilter(true);
896 899
         var reconnectingKey = "connection.RECONNECTING";
@@ -899,6 +902,9 @@ var VideoLayout = (function (my) {
899 902
         $('#videoConnectionMessage').css({display: "block"});
900 903
     };
901 904
 
905
+    /**
906
+     * Indicates that the video has been restored.
907
+     */
902 908
     my.onVideoRestored = function () {
903 909
         LargeVideo.enableVideoProblemFilter(false);
904 910
         $('#videoConnectionMessage').css({display: "none"});

+ 9
- 0
modules/xmpp/JingleSession.js Dosyayı Görüntüle

@@ -122,6 +122,13 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
122 122
         if (!(self && self.peerconnection)) return;
123 123
         self.updateModifySourcesQueue();
124 124
     };
125
+    /**
126
+     * The oniceconnectionstatechange event handler contains the code to execute when the iceconnectionstatechange event,
127
+     * of type Event, is received by this RTCPeerConnection. Such an event is sent when the value of
128
+     * RTCPeerConnection.iceConnectionState changes.
129
+     *
130
+     * @param event the event containing information about the change
131
+     */
125 132
     this.peerconnection.oniceconnectionstatechange = function (event) {
126 133
         if (!(self && self.peerconnection)) return;
127 134
         self.updateModifySourcesQueue();
@@ -129,6 +136,7 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
129 136
             case 'connected':
130 137
                 this.startTime = new Date();
131 138
 
139
+                // Informs interested parties that the connection has been restored.
132 140
                 if (this.peerconnection.signalingState === 'stable' && this.isreconnect)
133 141
                     self.eventEmitter.emit(XMPPEvents.CONNECTION_RESTORED);
134 142
                 this.isreconnect = false;
@@ -137,6 +145,7 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
137 145
             case 'disconnected':
138 146
                 this.isreconnect = true;
139 147
                 this.stopTime = new Date();
148
+                // Informs interested parties that the connection has been interrupted.
140 149
                 if (this.peerconnection.signalingState === 'stable')
141 150
                     self.eventEmitter.emit(XMPPEvents.CONNECTION_INTERRUPTED);
142 151
                 break;

+ 2
- 0
service/xmpp/XMPPEvents.js Dosyayı Görüntüle

@@ -1,6 +1,8 @@
1 1
 var XMPPEvents = {
2 2
     CONNECTION_FAILED: "xmpp.connection.failed",
3
+    // Indicates an interrupted connection event.
3 4
     CONNECTION_INTERRUPTED: "xmpp.connection.interrupted",
5
+    // Indicates a restored connection event.
4 6
     CONNECTION_RESTORED: "xmpp.connection.restored",
5 7
     CONFERENCE_CREATED: "xmpp.conferenceCreated.jingle",
6 8
     CALL_INCOMING: "xmpp.callincoming.jingle",

Loading…
İptal
Kaydet