을 충돌 나는이 다음 코드 :잠금 아이폰 OS 카메라 노출
-(void) startCameraCapture {
// start capturing frames
// Create the AVCapture Session
session = [[AVCaptureSession alloc] init];
// create a preview layer to show the output from the camera
AVCaptureVideoPreviewLayer *previewLayer = [AVCaptureVideoPreviewLayer layerWithSession:session];
// Specify that the video should be stretched to fill the layer’s bounds.
previewLayer.videoGravity = AVLayerVideoGravityResize;
//previewView.frame = CGRectMake(126.0, 164.0, 64.0, 75.0);
previewLayer.frame = previewView.frame;
[previewView.layer addSublayer:previewLayer];
// Get the default camera device
AVCaptureDevice* camera = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
// get the current settings
[appDelegate loadSettings];
[session startRunning];
}
내가 화면이 특정 밝기를 조정할 수 만에 카메라 장치의 노출을 고정 할 수있는 방법이 있나요?
죄송합니다.이 권리를 요청하지 않으면 죄송합니다.
감사합니다.
편집 :
내가 추가하는 시도 :
[camera setExposureModeCustomWithDuration:CMTimeMake(1,1) ISO:100 completionHandler:nil];
을하지만 앱에서 결과 만 그 줄에서 충돌. 애플의 문서에 따르면
https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVCaptureDevice_Class/index.html#//apple_ref/occ/instm/AVCaptureDevice/setTorchModeOnWithLevel : error : – user523234
'setExposureModeCustomWithDuration' 메소드 호출을 시도 할 때 오류가 발생합니다. 내가 뭐라고 부르는지 모르겠다. 내 AVCaptureDevice? – Tukajo
@ Tukajo 혹시 이것을 알아 냈습니까? 나는 같은 문제가있다. –