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

Camera is not really switched off after triggering arSystem.pause() #25

Closed
HeimMatthias opened this issue Apr 17, 2021 · 2 comments
Closed

Comments

@HeimMatthias
Copy link

Calling arSystem.pause(false) switches off the camera feed in the a-frame, but the camera remains active. At least on iOS, the status-light remains switched on. For user-security reasons it would be good if it could be switched off completely during pause, or at least optionally. Especially as the camera is also a drain on energy consumption.

@hiukim
Copy link
Owner

hiukim commented Apr 20, 2021

@HeimMatthias Yes, the arSystem.pause(false) function translate to video.pause(), which keeps the video so the light indicator will still be on.

If you want to have it completely switched off, you can call arSystem.stop(), which should stop the video completely. and then you can call arSystem.start() again. There is still a bit of extra overhead when restart, but I think should be much faster than the first time.

@HeimMatthias
Copy link
Author

Thanks, I'll try that.

@hiukim hiukim closed this as completed Jun 1, 2021
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

2 participants