Browse Source

fix log: getSupportedConstraints

Michael Wang 5 năm trước cách đây
mục cha
commit
f63ec3a98e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/FaceRecognition/FaceRecognition.vue

+ 1 - 1
src/components/FaceRecognition/FaceRecognition.vue

@@ -119,7 +119,7 @@ export default {
             detail: "摄像头getSupportedConstraints",
             getSupportedConstraints:
               navigator.mediaDevices.getSupportedConstraints &&
-              navigator.mediaDevices.getSupportedConstraints(),
+              JSON.stringify(navigator.mediaDevices.getSupportedConstraints()),
           });
           const stream = await navigator.mediaDevices.getUserMedia({
             video: {