소스 검색

Skips setting local track resolution in case of FF.

dev1
damencho 9 년 전
부모
커밋
b96c4d1c12
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 9
    2
      modules/RTC/JitsiLocalTrack.js

+ 9
- 2
modules/RTC/JitsiLocalTrack.js 파일 보기

@@ -39,6 +39,12 @@ function JitsiLocalTrack(stream, track, mediaType, videoType, resolution,
39 39
         mediaType, videoType, null /* ssrc */);
40 40
     this.dontFireRemoveEvent = false;
41 41
     this.resolution = resolution;
42
+
43
+    // FIXME: currently firefox is ignoring our constraints about resolutions
44
+    // so we do not store it, to avoid wrong reporting of local track resolution
45
+    if (RTCBrowserType.isFirefox())
46
+        this.resolution = null;
47
+
42 48
     this.deviceId = deviceId;
43 49
     this.startMuted = false;
44 50
     this.initialMSID = this.getMSID();
@@ -299,9 +305,10 @@ JitsiLocalTrack.prototype._setMute = function (mute) {
299 305
             var streamOptions = {
300 306
                 cameraDeviceId: this.getDeviceId(),
301 307
                 devices: [ MediaType.VIDEO ],
302
-                facingMode: this.getCameraFacingMode(),
303
-                resolution: this.resolution
308
+                facingMode: this.getCameraFacingMode()
304 309
             };
310
+            if (this.resolution)
311
+                streamOptions.resolution = this.resolution;
305 312
 
306 313
             promise = RTCUtils.obtainAudioAndVideoPermissions(streamOptions)
307 314
                 .then(function (streamsInfo) {

Loading…
취소
저장