AVCaptureDevice problem
Got a problem I can't figure out. My code is
AVCaptureDevice *device = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
This produces an "AVCaptureDevice undeclared" error. Of course I have brought in AudioToolbox.h as a framework, and declared
#import <AudioToolbox/AudioToolbox.h> in my .m file. I also tried placing this in the .h file, but that didn't work either.
Does anyone know why I would be getting this error?
Essentially I am trying to find out if the device the app is running on has the LED light found on iPhone 4 or not.
Thanks in advance.
|