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

Flash not working. #28

Closed
replytoashish008 opened this issue Dec 23, 2016 · 1 comment
Closed

Flash not working. #28

replytoashish008 opened this issue Dec 23, 2016 · 1 comment

Comments

@replytoashish008
Copy link

replytoashish008 commented Dec 23, 2016

Hi,

I have include this library in one of my project . I tried to on the Flash using following code.

NextLevel.sharedInstance.flashMode = .on

But it is not working. it always return "NextLevel.sharedInstance.flashMode" off.

Please check the issue.

@replytoashish008 replytoashish008 changed the title Flash is not working. Flash not working. Dec 23, 2016
@piemonte
Copy link
Contributor

hey @replytoashish008 thanks for the interest. a session needs to be started before setting any of the modes, this ensures there is an active capture device.

what happens when your code approaches this line?
https://github.com/NextLevel/NextLevel/blob/master/Sources/NextLevel.swift#L1258

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