Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
Posts: 6
Registered: ‎07-04-2013
My Device: Q10

Need CameraFlashMode.Light on CameraMode.Photo mode

Hi,

 

I need the flash light in photo mode.

I can get the flash light on when camera is in video mode (CameraMode.Video) however my barcode reader application can't read the barcodes in camera mode...

 

So, my questions are:

1. Can we turn the flash light on (CameraFlashMode.Light) when we are in photo mode (CameraMode.Photo)

2. Can we read barcodes when camera in video mode (CameraMode.Video)

 

Thanks in advance.

Highlighted
New Contributor
Posts: 8
Registered: ‎08-30-2013
My Device: bbz10
My Carrier: fido

Re: Need CameraFlashMode.Light on CameraMode.Photo mode

I have the same issue. it seems:

cameraSettings.flashMode = CameraFlashMode.Light;

 

doesn't turn on the flash light when startViewfinder get called as documented. any plan from BB to fix this issue ?

 

thx

Developer
Posts: 35
Registered: ‎12-18-2012
My Device: PlayBook
My Carrier: .

Re: Need CameraFlashMode.Light on CameraMode.Photo mode


noomen wrote:

I have the same issue. it seems:

cameraSettings.flashMode = CameraFlashMode.Light;

 

doesn't turn on the flash light when startViewfinder get called as documented. any plan from BB to fix this issue ?

 

thx


Two years later, the issue remains. I guess, the answer to your question was "no"...

Developer
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: Need CameraFlashMode.Light on CameraMode.Photo mode

[ Edited ]

Setting the light works, but viewfinder must be in video mode and you have to save the camera settings after changing them

 

 

Developer
Posts: 35
Registered: ‎12-18-2012
My Device: PlayBook
My Carrier: .

Re: Need CameraFlashMode.Light on CameraMode.Photo mode


slashkyle wrote:

Setting the light works, but viewfinder must be in video mode and you have to save the camera settings after changing them

 

 


Video mode does not provide access to preview frames. As previewFrameAvailable is never emitted in video mode, any kind of live camera image processing is impossible. For instance, BarcodeDetector never receives any images to work on, and thus does not work.

 

So we can get either:

  • continuous light, but no preview frames (in Video mode), or
  • preview frames, but no continuous light (in Photo mode)

This looks somewhat irrational, doesn't it?