-
-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
<script type="text/javascript" src="https://unpkg.com/webcam-easy/dist/webcam-easy.min.js"></script>
<script>
window.addEventListener('load', function() {
//js代码
const webcamElement = document.getElementById('webcam');
const canvasElement = document.getElementById('canvas');
//const snapSoundElement = document.getElementById('snapSound');
const webcam = new Webcam(webcamElement, 'environment', canvasElement);
webcam.flip();
webcam.start()
.then(result =>{
console.log("webcam started");
})
.catch(err => {
console.log(err);
});
});
</script>
the code always streaming video reversed, i tried webcam.flip() or set the 'environment' parameter to webcam but doesn't work:
const webcam = new Webcam(webcamElement, 'environment', canvasElement);
Metadata
Metadata
Assignees
Labels
No labels