@@ -59,9 +59,9 @@ export default {
console.log("启动摄像头");
const stream = await navigator.mediaDevices.getUserMedia({
video: {
- facingMode: "user",
- width: 400,
- height: this.showRecognizeButton ? 300 : 250
+ facingMode: "user"
+ // width: 400,
+ // height: this.showRecognizeButton ? 300 : 250
}
});
@@ -8,6 +8,10 @@
audioPlayTimes[index]}})</span><br />
</div>
+
+ <div v-else>
+ 获取试题中...
+ </div>
</template>
<script>