瀏覽代碼

rtc: remove default aspect ratio constraint

Some devies may not be able to satisfy it and gUM will fail. Tested with a
crappy old camera which can only do VGA resolution at 4/3 aspect ratio.
dev1
Saúl Ibarra Corretgé 5 年之前
父節點
當前提交
26456dc8da
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. 0
    1
      modules/RTC/RTCUtils.js

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

@@ -55,7 +55,6 @@ const OLD_GUM_DEFAULT_DEVICES = [ 'audio', 'video' ];
55 55
  */
56 56
 const DEFAULT_CONSTRAINTS = {
57 57
     video: {
58
-        aspectRatio: 16 / 9,
59 58
         height: {
60 59
             ideal: 720,
61 60
             max: 720,

Loading…
取消
儲存