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
Developer
ryansweny
Posts: 64
Registered: ‎07-15-2008
My Device: Z10

camera_config_videolight returns error code 5

Hi,

 

I'm trying to turn on the video light using either:

            returnCode = camera_config_videolight(mCameraHandle, CAMERA_VIDEOLIGHT_ON);
            qDebug() << " videolight code: " << returnCode;

 

or

 

              returnCode = camera_config_focus_assist(mCameraHandle, true);
              qDebug() << " CAMERA_FEATURE_FOCUSASSIST code: " << returnCode;

 

The video light call returns 5 and the focus assist call returns 0, but in both cases no light comes on. Other features like setting the focus and zoom are working fine though. Is there a trick to getting the camera light to work and are the error code values documented anywhere?

 

Some bugs I also came across were:

1) Both these error codes seem to have value 16

Debug: CAMERA_EALREADY:  16
Debug: CAMERA_EBUSY:  16

 

2) camera_get_videolight_level(mCameraHandle, &percent); always returns 100 percent.

 

(Gold NDK, OS OS 10.0.9.1103, Dev Alpha A)

 

thanks,

 

Ryan

 

Developer
ryansweny
Posts: 64
Registered: ‎07-15-2008
My Device: Z10

Re: camera_config_videolight returns error code 5

To Add more.. the bug only happens after you attach a view finder to the camera. Also the OS version should be the latest as of Dec. 18th, but it has been reporting weird numbers like 10.0.9.156 as well in some spots at some times. The alert after the update did say the correct 10.0.9.1675 though.