【发布时间】:2016-01-22 22:15:17
【问题描述】:
我在尝试从外部源创建 AVPlayer 时收到 unrecognized selector 错误。据我所知,我完全遵循 Apple 的指导方针。
我想做的只是:
#import <AVKit/AVKit.h> // Not sure if these are both necessary but they can't hurt
#import <AVFoundation/AVFoundation.h>
NSURL *videoURL = [NSURL URLWithString:@"https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"];
AVPlayer *player = [AVPlayer playerWithURL:videoURL];
我在最后一行得到这个错误:
+[AVPlayer playerWithURL:]: unrecognized selector sent to class 0x1000f30c8
【问题讨论】:
标签: ios objective-c avfoundation avplayer avkit