Questions tagged [camera-flash]
58 questions
0
votes
0 answers
(iOS Cam App)How to set flashMode to align the flash behavior with System Apple Camera App?
I am developing a custom camera app on iOS 15 and have encountered difficulties when working on the flash mechanism to make it work like the native Camera app. I noticed that when I call
[_photoOutput capturePhotoWithSettings:photoSettings…

kobunketsu
- 157
- 2
- 10
0
votes
0 answers
Android Native Flashlight Is not working in android 10 and above
Flash Light is working as expected below android 10 but as soon as i installed my game in android 10 its stop working.
internal AndroidJavaObject camera = null;
public AndroidCamera()
{
WebCamDevice[] devices =…

Usman Fayyaz
- 11
- 4
0
votes
1 answer
Making a flash icon work in flutter by turning on the flash when the icon is pressed
I am making a camera app with a button that will be able to turn the flash on and off.
When the flash is not on I would like for the flash_off icon to be displayed.
However, my problem is trying to make the flash turn on and the icon change to…

Serenity
- 3
- 3
0
votes
2 answers
Launch Back Camera On a Button Click?
i just want to know is there any way to launch the backcamera using just intent. i don't want to use intent.putextra thing. so basically my code should look like this
final Intent cameraIntent = new Intent();
…

aarti Ladva
- 113
- 9
0
votes
3 answers
Flutter camera 0.8.1 flash on while streaming
Is there a way in flutter with camera 0.8.1 to stream from my camera to process the frames and keep the flash on while streaming? Working on windows and running on android
The example with camera 0.8.1 do not really give me a idea how to set the…

Hendrik
- 135
- 1
- 10
0
votes
1 answer
FLASH_MODE_TORCH in CameraX
I am trying to keep the flash on all time by setting flash to FLASH_MODE_TORCH in CameraX in my app. But, I could not find this flash mode for cameraX. Is this mode not available in cameraX? If not, is there any alternative to keep my flash on whole…

Ayush Agrawal
- 5
- 3
0
votes
0 answers
How to check if camera flash is on programatically on Android Studio?
I'm making a flashlight app. The app has an option to switch from rear camera flash to front camera flash. The problem is that, while the torch is on, if I switch the rear camera to front, the front camera flashes for like less than a second and…
0
votes
1 answer
How to turn off Flash light of Camera with use Night scene, when take a picture in Android?
Problem: When i set scene mode to SCENE_MODE_NIGHT, flash cannot be set to Off when i call takePicture() method.
Pseudo:
Camera mCamera = Camera.open(Camera.CameraInfo.CAMERA_FACING_BACK)
Camera.Parameters params =…

t0m
- 3,004
- 31
- 53
0
votes
0 answers
Is it possible to control flash intensity and flash frequency with Android Camera2?
I have an application where I am trying to impart the maximum possible light energy into a subject from an Android smartphone's flash.
In lab measurements with several phones we have observed that the light output of the flash while taking an auto…

user3546903
- 21
- 5
0
votes
1 answer
handle camera flash programmatically
I have a camera layout. I need that to handle the flash icon. Just like in the normal in-built cameras, you click on the icon, the icon and the flash mode changes. The icon is in the action bar.
final ImageView…

Harshita
- 382
- 1
- 6
- 21
0
votes
1 answer
Update seekBar progress on UI
I am working at a flashlight app with stroboscope , at this moment the app is working, the flash is working with a button, and the frequency of the strobe is being incresed with the help of a seekbar.
The problem is that if the flash is on and i…

Bucur Mihai
- 13
- 5
0
votes
2 answers
Android Camera2 Flash Timing Issues
I'm working on an Android camera app that needs to use a fixed (manual) focus, and always uses the flash. I'm having some issues that seem to be with the flash timing. The flash always fires and an image is always acquired, but sometimes the flash…

jranalli
- 718
- 1
- 6
- 14
0
votes
1 answer
iOS 10: UIImagePickerViewController Can Not Set Flash Mode
I am working on creating custom controls for my UIImagePickerViewController. I have the default flash setting set to .off and I want to switch between on and off.
But I'm having a lot of trouble getting the UIImagePickerControllerCameraFlashMode to…

Brandon A
- 8,153
- 3
- 42
- 77
0
votes
0 answers
Android sound loop
I am developing an Android application that converts morse code to sounds and flashes. The flashes part works well, but I'm having troubles with sound part.
here is the code I have so far:
SoundPool sp =new…

user2907139
- 97
- 1
- 9
0
votes
1 answer
Android Camera2 - Switch flash mode
I'm trying to develop an application, based on Google Camera2Basic example, that uses Camera 2 API.
I would like to add a button that allows me to switch the flash mode.
The problem is when I click on the button to switch between different flash…

BigNick
- 113
- 1
- 2
- 7