Skip to content
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

feat: Video Stream HTMLVideoElement #26

Closed
onra2 opened this issue Aug 2, 2024 · 1 comment
Closed

feat: Video Stream HTMLVideoElement #26

onra2 opened this issue Aug 2, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists feature Feature

Comments

@onra2
Copy link

onra2 commented Aug 2, 2024

Is your feature request related to a problem? Please describe.
Not really, but hiding the body in some frameworks feels like a hack, it would be easier if we could get a video stream of the active camera so we can put it in any video html tag. It makes it easier to customize the UI too.

Describe the solution you'd like
I would like to be able to show a continuous video preview in a video html tag for a ticket scanning app. The way i want to scan is when the user presses on the screen it activates the scanning capabilities instead of pressing a button and only then showing the camera.

Describe alternatives you've considered
The normal way of hiding technically works but it's hard to customize the UI.
What i did try was getting the stream this way:
//html ref to the video tag const stream = await navigator.mediaDevices.getUserMedia({ video: { facingMode: 'environment' } }); if (video.value) { video.value.srcObject = stream; }

I would be very happy with that feature :) Thanks

@robingenz
Copy link
Owner

I close this as duplicate of capawesome-team/capacitor-mlkit#79.

@robingenz robingenz closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 2024
@robingenz robingenz added duplicate This issue or pull request already exists feature Feature labels Aug 3, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists feature Feature
Projects
None yet
Development

No branches or pull requests

2 participants