ngx-webcam icon indicating copy to clipboard operation
ngx-webcam copied to clipboard

Is it possible to add a simple turn on/off torch feature?

Open tgomezc opened this issue 6 years ago • 11 comments

While the library is very complete and easy to use i think this is a good feature that is missing.

tgomezc avatar Oct 27 '19 06:10 tgomezc

I am also very interested in this feature. Did you come up with something already?

Farry1 avatar Feb 24 '20 14:02 Farry1

Same here. Does anybody know anything about this feature?

carlosabud avatar Feb 28 '20 14:02 carlosabud

Thanks for pushing for this. While the webcam component itself can be "disabled" by using ng-if and conditionally (not) rendering it, the component does not currently have a dedicated on/off switch.

I will put that on my todo list for future versions.

Does conditional rendering work for you as a workaround?

basst314 avatar Mar 22 '20 04:03 basst314

I think we are referring to different things.

We are asking (or maybe requesting) for a camera torch or camera flash functionality.

carlosabud avatar Mar 29 '20 18:03 carlosabud

Hi @carlosabud,

Thanks for clarifying! That sounds like an exciting feature! Will do some research and get back to you all here.

Cheers!

basst314 avatar Mar 30 '20 02:03 basst314

Any solution for this feature ?

sagarwasule avatar Jul 18 '20 19:07 sagarwasule

Also interested in such a feature!

piepmax avatar Feb 03 '21 06:02 piepmax

#169 I have this for now it's not a solution but it may help, it needs love (time to learn and write a lot of code).

LocoUnPocoNadaMas avatar Feb 04 '23 02:02 LocoUnPocoNadaMas

getPhotoCapabilities method from ImageCapture allow to manage torch on device phone. It works on my side

sophieelsa avatar Oct 09 '23 12:10 sophieelsa

yes, after search for a while I found this image-capture.d.ts

LocoUnPocoNadaMas avatar Oct 09 '23 15:10 LocoUnPocoNadaMas

Any solution? How can I use it? It would be beautiful

ganholete avatar Oct 23 '23 14:10 ganholete