AVFoundation可以轻松窥探你吗?

时间:2014-01-23 12:41:16

标签: ios camera avfoundation

我最近发现了这个:http://openradar.appspot.com/15880263

如果我错了,请纠正我,但这些行允许开发人员在没有用户注意的情况下监视用户,对吗?

AVCaptureDevice *frontDevice = nil;
for (AVCaptureDevice *device in [AVCaptureDevice devices]) {
    if (device.position == AVCaptureDevicePositionFront) {
        frontDevice = device;
    }
}
AVCaptureDeviceInput *input = [AVCaptureDeviceInput deviceInputWithDevice:frontDevice error:nil];
AVCaptureMovieFileOutput *output = [[AVCaptureMovieFileOutput alloc] init];

session = [[AVCaptureSession alloc] init];
[session beginConfiguration];
[session addInput:input];
[session addOutput:output];
[session commitConfiguration];
[session startRunning];

// Wait X seconds

NSString *path = [DOCUMENTS_DIRECTORY stringByAppendingPathComponent:@"output.mov"];
NSURL *url = [NSURL fileURLWithPath:path];
[output startRecordingToOutputFileURL:url recordingDelegate:self];
例如,我可以将output.mov发送到我自己的服务器。这很可怕,除非我遗漏了什么.......

0 个答案:

没有答案