<video id="player" controls autoplay="true" muted="muted"></video>
<script>
var player = document.getElementById('player');



var handleSuccess = function(stream) {
player.srcObject = stream;
player.volume = 0.05;
};



navigator.mediaDevices.getUserMedia({ audio: true, video: true })
.then(handleSuccess)
</script>