JavaScript获取视频流且回显
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<video id="video" width="640" height="480" autoplay="autoplay"></video>
<br/>
<button id="snap">截取图像</button><button id="start">开始录制</button><button id="stop">停止录制</button>
<br/>
<canvas id="canvas" width="640" height="480"></canvas>
</body>
<script type="text/javascript">
let videoView = document.getElementById("video");
let buttonView = document.getElementById("snap");
let startButton = document.getElementById("start");
let stopButton = document.getElementById("stop");
let canvasView = document.get