Przeglądaj źródła

Add jsdocs

dev1
Lyubomir Marinov 8 lat temu
rodzic
commit
39488195d5

+ 1
- 1
modules/statistics/RTPStatsCollector.js Wyświetl plik

727
             calculatePacketLoss(lostPackets.upload, totalPackets.upload)
727
             calculatePacketLoss(lostPackets.upload, totalPackets.upload)
728
     };
728
     };
729
     this.eventEmitter.emit(StatisticsEvents.CONNECTION_STATS, {
729
     this.eventEmitter.emit(StatisticsEvents.CONNECTION_STATS, {
730
+            "bandwidth": this.conferenceStats.bandwidth,
730
             "bitrate": this.conferenceStats.bitrate,
731
             "bitrate": this.conferenceStats.bitrate,
731
             "packetLoss": this.conferenceStats.packetLoss,
732
             "packetLoss": this.conferenceStats.packetLoss,
732
-            "bandwidth": this.conferenceStats.bandwidth,
733
             "resolution": resolutions,
733
             "resolution": resolutions,
734
             "transport": this.conferenceStats.transport
734
             "transport": this.conferenceStats.transport
735
         });
735
         });

+ 11
- 4
service/statistics/Events.js Wyświetl plik

12
 
12
 
13
 /**
13
 /**
14
  * Notifies about audio problem with remote participant.
14
  * Notifies about audio problem with remote participant.
15
+ *
16
+ * @param ssrc - The synchronization source identifier (SSRC) of the remote
17
+ * participant whose audio exhibits problems.
15
  */
18
  */
16
 export const AUDIO_NOT_WORKING = "statistics.audio_not_working";
19
 export const AUDIO_NOT_WORKING = "statistics.audio_not_working";
17
 
20
 
18
 /**
21
 /**
19
- * An event carrying connection statistics.
22
+ * An event carrying all statistics by ssrc.
20
  */
23
  */
21
-export const CONNECTION_STATS = "statistics.connectionstats";
24
+export const BYTE_SENT_STATS = "statistics.byte_sent_stats";
22
 
25
 
23
 /**
26
 /**
24
- * An event carrying all statistics by ssrc.
27
+ * An event carrying connection statistics.
28
+ *
29
+ * @param {object} connectionStats - The connection statistics carried by the
30
+ * event such as <tt>bandwidth</tt>, <tt>bitrate</tt>, <tt>packetLoss</tt>,
31
+ * <tt>resolution</tt>, and <tt>transport</tt>.
25
  */
32
  */
26
-export const BYTE_SENT_STATS = "statistics.byte_sent_stats";
33
+export const CONNECTION_STATS = "statistics.connectionstats";

Ładowanie…
Anuluj
Zapisz