Comments (3)
I solved my problem. The most (maybe all) brwosers dont allow to call getUserMedia without SSL.
I created an self signed certificate and deployed it and now it works. The Problem was not on the Webcam Source!
Thank you anyway @mmouterde
from vue-web-cam.
I think the example is not complete.
Try:
<template>
<vue-web-cam @cameras="onCameras($event)" :deviceId="deviceId" />
</template>
<script>
import VueWebCam from "vue-web-cam";
export default {
data: function() {
return {
deviceId: null
};
},
components: {
VueWebCam
},
methods: {
onCameras: function(cameras) {
if (cameras.length === 1) {
this.deviceId = cameras[0].deviceId;
}
}
}
};
</script>
<style></style>
from vue-web-cam.
Hey, I tried your minimized code but the result is the same :( Not even the browser asks for webcam access. I can't figure out why :/
from vue-web-cam.
Related Issues (20)
- unsupport nuxt3
- Mi browser HOT 1
- using vue-web-cam with videojs-record HOT 1
- On Error Event DOMException: Could not start video source HOT 3
- feature request: manually call setupMedia and assign canvas Element by object refs HOT 1
- This works on mobile? HOT 2
- Typescript support? HOT 1
- Add encoderOptions to toDataURL() HOT 4
- <input capture="camera"> on mobile HOT 5
- Is Vue3 Supported? HOT 2
- Possible to use camera as background canvas for the page? HOT 1
- The boxWidth and boxHeight don't work. HOT 5
- Can I store the recorded video and send it to the server as a file or encoded video? #question HOT 1
- Not supporting in in Internet explorer. HOT 3
- Live working demo using Github pages HOT 2
- Can this.$refs.camera.capture() capture the entire video instead of just a photo? HOT 3
- deviceId being mutated inside component
- How do not run by default?
- iphone version 10 and above
- open rear camera
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-web-cam.