![](/img/trans.png)
[英]Objective-C - Receiver type 'NSInteger' (aka 'long') is not an Objective-C class & Receiver type 'NSDecimal' is not an Objective-C class
[英]Bad receiver type 'AVMediaType' in Objective-C
您的代码对我来说很好。
AVCaptureConnection *connection = [_movieFileOutput connectionWithMediaType:AVMediaTypeAudio];
for (AVCaptureInputPort *port in [connection inputPorts]) {
if ([[port mediaType] isEqual:AVMediaTypeVideo]){
NSLog(@"Media is Video type");
}
}
退出Xcode,然后再次运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.