Hello I am using the AV framework to try to access the front facing camera…
This is my code to do so..
+ (AVCaptureDevice *)camera
{
NSArray *devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
for (AVCaptureDevice *device in devices) {
if ([device position] == AVCaptureDevicePositionFront) {
NSLog(@"Device Position is :%i",device.position);
return device;
}
}
return nil;
}
The NSLog is telling me I am on position two, however the video being shown on my screen is still from the back… Any suggestions?
1 Answer