Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Flashlight
Started by Michael W. Sep 15 2015 02:46 PM

16 replies to this topic
release android ios
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Michael W.

[GLOBAL: userInfoPane.html]
Michael W.
  • Contributor

  • 276 posts
  • Alumni

Flashlight

by Spiral Code Studio


View and activate on the Corona Store


The Flashlight plugin provides access to the flash LED light source, which can be used as a torch. This works on Android and iOS.

Documentation

[TOPIC: post.html]
#2

tonygod

[GLOBAL: userInfoPane.html]
tonygod
  • Contributor

  • 196 posts
  • Corona SDK

This plugin is unable to download (using 2015.2701)



[TOPIC: post.html]
#3

Michael W.

[GLOBAL: userInfoPane.html]
Michael W.
  • Contributor

  • 276 posts
  • Alumni

This plugin is unable to download (using 2015.2701)

Sorry about that. Give it a try now.

[TOPIC: post.html]
#4

tonygod

[GLOBAL: userInfoPane.html]
tonygod
  • Contributor

  • 196 posts
  • Corona SDK

Sorry about that. Give it a try now.

Works now.  Thanks!



[TOPIC: post.html]
#5

federico.ghir

[GLOBAL: userInfoPane.html]
federico.ghir
  • Observer

  • 1 posts
  • Corona SDK

Can I afford to say that I find this plugin quite slow?

In a simple project where to use a checkbox as a widget on off switch for the flashlight, the execution is slower than other programs.



[TOPIC: post.html]
#6

detot

[GLOBAL: userInfoPane.html]
detot
  • Observer

  • 1 posts
  • Corona SDK

Unable to download plugin =(



[TOPIC: post.html]
#7

koalassquad

[GLOBAL: userInfoPane.html]
koalassquad
  • Observer

  • 16 posts
  • Corona SDK

i downloaded this and it says activated but its not in my plugins directory



[TOPIC: post.html]
#8

Lerg

[GLOBAL: userInfoPane.html]
Lerg
  • Contributor

  • 538 posts
  • Corona Staff

Are you using the same account in Corona Simulator and on the website?



[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,081 posts
  • Enterprise

Are  you using a "supportedPlatforms" line in your build.settings? If so, comment it on, reload the sim, the error should go away and then you can re-enable the line and the simulator will be happy.  This has been resolved as of daily build 2811 (today's build).

 

Rob



[TOPIC: post.html]
#10

Lerg

[GLOBAL: userInfoPane.html]
Lerg
  • Contributor

  • 538 posts
  • Corona Staff

Updated this plugin to support Android 6, starting from daily build 2016.2828.



[TOPIC: post.html]
#11

Zed27

[GLOBAL: userInfoPane.html]
Zed27
  • Enthusiast

  • 69 posts
  • Corona SDK

Nice work  :)

I just have a problem to make it work with your other plugin qrcode on Android (didn't test on iOs). 



[TOPIC: post.html]
#12

Lerg

[GLOBAL: userInfoPane.html]
Lerg
  • Contributor

  • 538 posts
  • Corona Staff

Nice work  :)

I just have a problem to make it work with your other plugin qrcode on Android (didn't test on iOs). 

Oh, you can't do that. Flashlight occupies the camera and it becomes unavailable for the QR Scanner. I should make a flashlight option in the QR plugin.



[TOPIC: post.html]
#13

Zed27

[GLOBAL: userInfoPane.html]
Zed27
  • Enthusiast

  • 69 posts
  • Corona SDK

Thank you Sergey.

yes it would be great  :)

z.

 



[TOPIC: post.html]
#14

myzashstudio

[GLOBAL: userInfoPane.html]
myzashstudio
  • Observer

  • 1 posts
  • Corona SDK

I have a question. I already activated the plugin from corona store. Now how do i enable it on my SDK? Does it automatically downloaded to my SDK? Im getting error while building it. It cant find the plugin in my SDK plugin directory. Thank you

[TOPIC: post.html]
#15

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,081 posts
  • Enterprise

To use plugins, you need to add it to your build.settings file. Then you need to require the plugin in the module/scene where you plan to use it and then you call the API calls at the appropriate time.

 

See the plugin documentation on how to use it:

 

http://spiralcodestudio.com/plugin-flashlight/

 

Rob



[TOPIC: post.html]
#16

david.little2

[GLOBAL: userInfoPane.html]
david.little2
  • Observer

  • 1 posts
  • Corona SDK

Hi there,

I've been testing the flashlight plugin from the Corona Marketplace. I'm seeing a 0.5 second delay/hang when running flashlight.off(). You can see this in the sample app; when hitting the the "Flashlight OFF" button there is a delay in the button animation completing. 

I'm seeing the same in my own app with a single "power" button. A 0.5 second delay in changing images when turning the light off.

Any suggestions for how to avoid this hang/delay would be appreciated.



[TOPIC: post.html]
#17

Lerg

[GLOBAL: userInfoPane.html]
Lerg
  • Contributor

  • 538 posts
  • Corona Staff

Flashlight initialises entire camera, it takes time to close it properly. It's better on iPhones.
I am not sure I can do anything about that delay.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: release, android, ios