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

How can we stop preview/close camera in javascript function? #31

Closed
veetechh opened this issue Aug 31, 2018 · 5 comments
Closed

How can we stop preview/close camera in javascript function? #31

veetechh opened this issue Aug 31, 2018 · 5 comments

Comments

@veetechh
Copy link

I have a button, javascript function is called onclick. I want to stop the preview in javascript function.

@xavierjs
Copy link
Member

you can stop the rendering loop to not use resources, but you cannot release the camera.

@andrewlphilpott
Copy link

Would it be possible to get a method added to release the camera? The use case for the app I'm using this in makes it pretty important to disable the camera after it's being used.

If it's not something that will be added, I can just use a workaround I made by slightly modifying the jeelizFaceFilter.js file, but ideally I would like to avoid changing your scripts.

@xavierjs
Copy link
Member

xavierjs commented Mar 8, 2019

Hi,

Indeed, this feature is currently not implemented in this Github repository.
However, @jeeliz we would be happy to help you to adapt our libraries to fit your needs.
You can ask for this specific development service to contact__at__jeeliz.com and we will send you a proposal.

Best regards,
Xavier

@andrewlphilpott
Copy link

If I made a PR, would you be willing to consider adding it?

@xavierjs
Copy link
Member

xavierjs commented Mar 8, 2019

Sure, I will add it if it brings a new feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants