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
Posts: 300
Registered: ‎03-12-2009
My Device: Not Specified

Leave Camera light on when "Magnet" is in effect

I'm just starting to play with BB10. I'd like to leave the BB10 "Camera Light" on even when the user closes his/her "case" on it (or if the power button was pushed).

 

Pretty simple turning the light on...

 

	const camera_error_t error = camera_config_videolight(m_camera, CAMERA_VIDEOLIGHT_ON);

 but seems it gets "shut off" if the phone DIM's / Sleeps by itself.

 

Is there a way to keep this active?

Developer
Posts: 300
Registered: ‎03-12-2009
My Device: Not Specified

Re: Leave Camera light on when "Magnet" is in effect

Basically I want to keep the camera light on even if the phone sleeps.

 

BlackBerry Development Advisor
Posts: 668
Registered: ‎11-29-2011
My Device: developer

Re: Leave Camera light on when "Magnet" is in effect

nope. can't do it right now.

the camera h/w is tied to the display wake/sleep state, and since the led is driven through the camera interface, it's not currently possible to do this.

we're looking to change this behaviour in the future, but it depends on a power management change that I have no ETA for.

 

Cheers,

Sean

Developer
Posts: 1,523
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Leave Camera light on when "Magnet" is in effect

Hi! Is there any news on this issue?

Having the ability to turn the screen on programmatically could be the workaround for some cases, but that's also not possible afaik. :smileysad:

Andrey Fidrya, @zmeyc on twitter