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

iOS: Able to turn on & off flashlight once, but not able to turn on again #51

Open
logidelic opened this issue Nov 28, 2016 · 1 comment

Comments

@logidelic
Copy link

logidelic commented Nov 28, 2016

Hey all,

Wondering if anyone else has seen this issue:

  • I switch on the flashlight via flashlight.switchOn(). It works.
  • I switch off the flashlight via flashlight.switchOff(). It works.
  • Wait a few seconds
  • I try to switch on the flashlight via flashlight.switchOn(). It does the "success" callback, however the LED light remains off!

This is on latest iOS. Has anyone else experienced this problem? Or does it work for others?

@logidelic
Copy link
Author

Actually after playing around further, I think this is a timing issue related to the use of the cameras... I am using flashlight in conjunction with iosrtc, and it appears that turning on the flashlight is unreliable if it it's happening while iosrtc is connecting. I'm not sure if this is an iOS issue, an iosrtc issue, a libwebrtc issue or flashlight issue. :)

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

1 participant