Browse Source

Fixes issues after review

master
hristoterezov 9 years ago
parent
commit
06d07a3d6a
2 changed files with 11 additions and 4 deletions
  1. 3
    4
      JitsiConferenceEventManager.js
  2. 8
    0
      modules/RTC/JitsiLocalTrack.js

+ 3
- 4
JitsiConferenceEventManager.js View File

66
 
66
 
67
                         conference.eventEmitter.emit(
67
                         conference.eventEmitter.emit(
68
                             JitsiConferenceEvents.TRACK_REMOVED, track);
68
                             JitsiConferenceEvents.TRACK_REMOVED, track);
69
-                        
69
+
70
                         if(conference.transcriber){
70
                         if(conference.transcriber){
71
-                            conference.transcriber.removeTrack(track);    
71
+                            conference.transcriber.removeTrack(track);
72
                         }
72
                         }
73
-                        
73
+
74
                         return;
74
                         return;
75
                     }
75
                     }
76
                 }
76
                 }
563
     });
563
     });
564
 
564
 
565
     conference.statistics.addByteSentStatsListener(function (stats) {
565
     conference.statistics.addByteSentStatsListener(function (stats) {
566
-        var tracks = conference.getLocalTracks();
567
         conference.getLocalTracks().forEach(function (track) {
566
         conference.getLocalTracks().forEach(function (track) {
568
             var ssrc = track.getSSRC();
567
             var ssrc = track.getSSRC();
569
             if(!track.isAudioTrack() || !ssrc || !stats.hasOwnProperty(ssrc))
568
             if(!track.isAudioTrack() || !ssrc || !stats.hasOwnProperty(ssrc))

+ 8
- 0
modules/RTC/JitsiLocalTrack.js View File

55
     // enumerateDevices() list.
55
     // enumerateDevices() list.
56
     this._trackEnded = false;
56
     this._trackEnded = false;
57
 
57
 
58
+    /**
59
+     * The value of bytes sent received from the statistics module.
60
+     */
58
     this._bytesSent = null;
61
     this._bytesSent = null;
59
 
62
 
63
+    /**
64
+     * Used only for detection of audio problems. We want to check only once
65
+     * whether the track is sending bytes ot not. This flag is set to false
66
+     * after the check.
67
+     */
60
     this._testByteSent = true;
68
     this._testByteSent = true;
61
 
69
 
62
     // Currently there is no way to determine with what device track was
70
     // Currently there is no way to determine with what device track was

Loading…
Cancel
Save