瀏覽代碼

Reverts the camera issue detection

master
hristoterezov 8 年之前
父節點
當前提交
c9ad8b9d21
共有 1 個文件被更改,包括 12 次插入10 次删除
  1. 12
    10
      modules/RTC/JitsiLocalTrack.js

+ 12
- 10
modules/RTC/JitsiLocalTrack.js 查看文件

108
     RTCUtils.addListener(RTCEvents.DEVICE_LIST_CHANGED,
108
     RTCUtils.addListener(RTCEvents.DEVICE_LIST_CHANGED,
109
         this._onDeviceListChanged);
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
 JitsiLocalTrack.prototype = Object.create(JitsiTrack.prototype);
125
 JitsiLocalTrack.prototype = Object.create(JitsiTrack.prototype);

Loading…
取消
儲存