Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Individual Access of Camera LED Lights of iPhone 5s

I'm coding for the iPhone 5s and it now has two LED lights for the rear camera. I don't know the official LED color names, but one LED is white and the other LED is yellowish. Apple refers to this as "True Tone".

I'm trying to access these camera LED lights individually.

I believe this to be possible because when I access iOS7's control center (swipe up from bottom) and press the built-in flash light, only the white LED comes on.

This is different from applying the torch light code below. When I execute the code below, both LED lights come on.

AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];

if ([device hasTorch] && [device isTorchAvailable] && [device isTorchModeSupported:AVCaptureTorchModeOn]) {

    [device lockForConfiguration:nil];
    [device setTorchMode: onOff ? AVCaptureTorchModeOn : AVCaptureTorchModeOff];
    [device unlockForConfiguration];
}

I've been searching through the AVCaptureDevice Class reference and I have not seen anything specific about accessing the two LED lights individually. What I mean is, to turn on only the white LED or turn on only the yellowish LED. Not both LED's at the same time.

I am making one assumption that both lights are LEDs.

Any ideas on how to do this?

Many thanks for any info on this.

like image 941
JimVision Avatar asked Oct 09 '13 15:10

JimVision


People also ask

What G is iPhone 5S?

It is the seventh generation of the iPhone, succeeding the iPhone 5, and unveiled in September 2013, alongside the iPhone 5C. Apple Inc.

What kind of iPhone is model A1533?

Apple iPhone 5s - 16GB - Silver (AT&T) A1533 (GSM)

What size screen is iPhone 5S?

The Apple iPhone 5S (7th Gen) has height of 4.87” (123.8 mm), width of 2.31” (58.7 mm), depth of . 3” (7.6 mm), and weighs 3.95 oz (112 g). The screen size is 4” (100 mm) diagonal with a resolution of 1136 x 640 px at 326 ppi. The Apple iPhone 5S was released alongside the iPhone 5C in September 2013.


1 Answers

I opened a Technical Support Incident (TSI) with Apple Developer Support regarding the individual access of camera LED lights of the iPhone 5s.

I got a reply from them today. Here's what they said.

Hello Jim,

Thank you for contacting Apple Developer Technical Support (DTS). Our engineers have reviewed your request and have concluded that there is no supported way to achieve the desired functionality given the currently shipping system configurations.

If you would like for Apple to consider adding support to access the camera LED lights individually on the device, please submit an enhancement request via the Bug Reporter tool at http://bugreport.apple.com.

While you were initially charged a technical support incident for this support request, we have assigned a replacement incident back to your account.

Thank you for taking the time to file this report. We truly appreciate your help in discovering and isolating issues.

Apple Developer Support Worldwide Developer Relations

I did open an enhancement request via their Bug Reporter tool as they suggested. If anything comes of this, then I'll post it here. Cheers!

like image 190
JimVision Avatar answered Oct 05 '22 08:10

JimVision