Jelajahi Sumber

fix log: getSupportedConstraints

Michael Wang 5 tahun lalu
induk
melakukan
f63ec3a98e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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: {