![](/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.