我有这个代码,它假设一个 AV 决定已连接......
AVCaptureDeviceInput *device_input = [[AVCaptureDeviceInput alloc] initWithDevice :
[AVCaptureDevice devicesWithMediaType : AVMediaTypeVideo][0] error : nil];
如何修改该代码以便收到这样的消息...
if (No AV devices were detected)
NSLog(@"No AV devices were detected");
else
NSLog(@"The following devices were detected...");
谢谢,莱恩。