react-native-webrtc / react-native-incall-manager

Handling media-routes/sensors/events during a audio/video chat on React Native
ISC License
549 stars 191 forks source link

Flash API #5

Open ndarilek opened 8 years ago

ndarilek commented 8 years ago

I'd like to see an API for determining availability of, as well as toggling, camera flash. I suggest the following:

isFlashAvailable(): Returns true if the available hardware supports a flash. setFlashEnabled(bool): Sets the flash on or off.

zxcpoiu commented 8 years ago

@ndarilek

sorry, I have to deal with another project recently, so new features would be delayed.

have you studied API on android/ios yet? If you have some code snippets already, I can create a branch to merge your PR then we finalize it together :smile:

info required on both ios/android

ndarilek commented 8 years ago

Cool, I need this feature and can take a crack at implementing it on Android, but I don't yet have OS X/iOS hardware. If I implement a working Android solution, would you be able to either make the API work on iOS, or hash out an API that works on both?

zxcpoiu commented 8 years ago

sure, I will try my best. go head on master branch!

MartinSadovy commented 7 years ago

@zxcpoiu Hi, is there any progress? Thank you!

zxcpoiu commented 7 years ago

@ndarilek @MartinSadovy

good news, @stepanvotava had implemented ios version at #25