瀏覽代碼

Set default videoConstraints (#4070)

* Set default videoConstraints

* Update packages/@uppy/webcam/src/Webcam.jsx

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Artur Paikin 2 年之前
父節點
當前提交
c036754b68
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/@uppy/webcam/src/Webcam.jsx

+ 1 - 0
packages/@uppy/webcam/src/Webcam.jsx

@@ -99,6 +99,7 @@ export default class Webcam extends UIPlugin {
       mirror: true,
       showVideoSourceDropdown: false,
       facingMode: 'user', // @TODO: remove in the next major
+      videoConstraints: undefined,
       preferredImageMimeType: null,
       preferredVideoMimeType: null,
       showRecordingLength: false,