Pārlūkot izejas kodu

Reverts the camera issue detection

master
hristoterezov 8 gadus atpakaļ
vecāks
revīzija
c9ad8b9d21
1 mainītis faili ar 12 papildinājumiem un 10 dzēšanām
  1. 12
    10
      modules/RTC/JitsiLocalTrack.js

+ 12
- 10
modules/RTC/JitsiLocalTrack.js Parādīt failu

@@ -108,16 +108,18 @@ function JitsiLocalTrack(stream, track, mediaType, videoType, resolution,
108 108
     RTCUtils.addListener(RTCEvents.DEVICE_LIST_CHANGED,
109 109
         this._onDeviceListChanged);
110 110
 
111
-    if(this.isVideoTrack() && this.videoType === VideoType.CAMERA) {
112
-        this._setHandler("track_mute", () => {
113
-            if(this._checkForCameraIssues())
114
-                this.eventEmitter.emit(JitsiTrackEvents.NO_DATA_FROM_SOURCE);
115
-        });
116
-        this._setHandler("track_ended", () => {
117
-            if(this._checkForCameraIssues())
118
-                this.eventEmitter.emit(JitsiTrackEvents.NO_DATA_FROM_SOURCE);
119
-        });
120
-    }
111
+    // FIXME: Removed temporary until we verify that we don't fire the 
112
+    // the event when the camera is working.
113
+    // if(this.isVideoTrack() && this.videoType === VideoType.CAMERA) {
114
+    //     this._setHandler("track_mute", () => {
115
+    //         if(this._checkForCameraIssues())
116
+    //             this.eventEmitter.emit(JitsiTrackEvents.NO_DATA_FROM_SOURCE);
117
+    //     });
118
+    //     this._setHandler("track_ended", () => {
119
+    //         if(this._checkForCameraIssues())
120
+    //             this.eventEmitter.emit(JitsiTrackEvents.NO_DATA_FROM_SOURCE);
121
+    //     });
122
+    // }
121 123
 }
122 124
 
123 125
 JitsiLocalTrack.prototype = Object.create(JitsiTrack.prototype);

Notiek ielāde…
Atcelt
Saglabāt