<script>
function connectCamera() {
return navigator.mediaDevices.getUserMedia({ audio: false, video: true })
.then((stream) => { return 'getUserMediaSucceeded'; })
.catch((error) => { return 'getUserMediaFailed'; });
}
</script>
<script>
function connectCamera() {
return navigator.mediaDevices.getUserMedia({ audio: false, video: true })
.then((stream) => { return 'getUserMediaSucceeded'; })
.catch((error) => { return 'getUserMediaFailed'; });
}
</script>