Grab Frame Take Photo Источник видео:
<video autoplay playsinline class="hidden"></video>
<img>
<canvas class="hidden"></canvas>
<script>
function takePhoto() {
imageCapture.takePhoto().then(function(blob) {
console.log('Took photo:', blob);
img.classList.remove('hidden');
img.src = URL.createObjectURL(blob);
}).catch(function(error) {
console.log('takePhoto() error: ', error);
});