JSFiddle - React, Tailwind, and code Playground
by mattography
HTML
<input type="file" accept="video/*;capture=camcorder">
<input type="file" accept="audio/*;capture=microphone"><device type="media" onchange="update(this.data)"></device>
<video autoplay></video>
<script>
function update(stream) {
document.querySelector('video').src = stream.url;
}
</script>