瀏覽代碼

Fixed issue with not recognising unsupported resolution error

dev1
hristoterezov 9 年之前
父節點
當前提交
4e0f46de41
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      JitsiTrackErrors.js

+ 3
- 1
JitsiTrackErrors.js 查看文件

@@ -12,7 +12,9 @@ module.exports = {
12 12
             (error.constraintName == "minWidth" ||
13 13
             error.constraintName == "maxWidth" ||
14 14
             error.constraintName == "minHeight" ||
15
-            error.constraintName == "maxHeight") &&
15
+            error.constraintName == "maxHeight" ||
16
+            error.constraintName == "width" ||
17
+            error.constraintName == "height") &&
16 18
             devices.indexOf("video") !== -1) {
17 19
                 return this.UNSUPPORTED_RESOLUTION;
18 20
         } else if(typeof error === "object" && error.type === "jitsiError") {

Loading…
取消
儲存