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 to turnoff camera instance when navigating to different page #21

Open
19jake68 opened this issue May 24, 2016 · 8 comments
Open

How to turnoff camera instance when navigating to different page #21

19jake68 opened this issue May 24, 2016 · 8 comments

Comments

@19jake68
Copy link

Hi, i've been using your plugin for user registration and it works great on my app. Now, I'm just wondering how to turn off the camera instance when I navigate to a different page. Thanks!

@19jake68
Copy link
Author

Fix

@zachdunn
Copy link
Member

The camera shouldn't stay on between different pages. This sounds like you might need to look into your implementation on route/state change.

@yousheakhan
Copy link

I have been using this library and recently noticed that the camera does not get disabled even though the disable function gets called. Getting the following error on console

TypeError: Failed to execute 'getUserMedia' on 'Navigator': 3 arguments required, but only 2 present.
at n.link.scope.disableCamera

@zachdunn
Copy link
Member

This library isn't actively maintained, so it's possible the API for camera access if your browser is different than the original version. If you'd like to submit a PR, I can take a look.

@yousheakhan
Copy link

solved the arguments issue with adding the error part but still, the camera is not being disabled. No error on the console and the stream stops but the camera is not released

@zachdunn
Copy link
Member

#22 Should address. Target the branch directly for now. Won't be able to tag new release yet.

@yousheakhan
Copy link

the stream stops after changing the disable function but as I mentioned above the camera is not released. The camera lights is still on and no other application can use it until I close the tab

@zachdunn
Copy link
Member

OK, will reopen this issue for others. I will not have time to address this anytime soon, but if you'd like to give it a try @yousheakhan I will review your pull request.

@zachdunn zachdunn reopened this Jun 21, 2017
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