i try to set camera output resolution on Mac, but it seems failed
my code as below
if ([self.captureSession canSetSessionPreset:AVCaptureSessionPreset640x480]){
[[self captureSession] setSessionPreset:AVCaptureSessionPreset640x480];
}
when i debug, the preset is set successfully.
but the video output is till 1280*720
my code as below
if ([self.captureSession canSetSessionPreset:AVCaptureSessionPreset640x480]){
[[self captureSession] setSessionPreset:AVCaptureSessionPreset640x480];
}
when i debug, the preset is set successfully.
but the video output is till 1280*720