-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External video element #457
Comments
Interesting use case. I'm not familiar with that API. How do you attach that video stream to the video element? |
I watched this video here is the link https://youtu.be/fmLagxRhfpM?si=U0nEE3q3-Yw5Gg1V |
I think it's not that easy. At the moment the component internally requests a camera stream and attaches it to that video element. When that is done the scanning process starts. If the camera stream terminates, we stop the scanning process. However, if video element is provided from the outside then we don't know when to start or stop scanning. Maybe we can listen to events on the video element to make this work but I suspect this is a non-trivial change with many edge cases to consider: How do we react (can we?) when the custom video element is removed from the DOM? What if you update the I recommend you have a look at this function. It takes the video element from the template as an argument and attaches a camera stream to it. This function is invoked whenever the Vue component is mounted and also when props of the component change. Maybe you can get away with adjusting this function so it gets the video stream from some other source. |
Thank you for your interest. I will try your suggestion. I will write you the result. I hope I can do it. |
Hi gruhn,
I have an ip camera and i want to recognize QR code from this camera. I Stream from rtsp protocol with nodejs. Now how to prop video element to vue-qr-reader?
The text was updated successfully, but these errors were encountered: