瀏覽代碼

Replaced string with constant

master
tsareg 9 年之前
父節點
當前提交
3c0b730a1a
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      modules/RTC/JitsiLocalTrack.js

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

@@ -212,7 +212,7 @@ JitsiLocalTrack.prototype._setMute = function (mute) {
212 212
             // This path is only for camera.
213 213
             var streamOptions = {
214 214
                 cameraDeviceId: this.getDeviceId(),
215
-                devices: ["video"],
215
+                devices: [ MediaType.VIDEO ],
216 216
                 facingMode: this.getCameraFacingMode(),
217 217
                 resolution: this.resolution
218 218
             };

Loading…
取消
儲存