unrecognized selector
尝试AVPlayer
从外部源创建时出现错误。据我所知,我正在遵循 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