I get an unrecognized selector
error when trying to create an AVPlayer
from external source. From what I can see, I'm following Apple's guidelines by the book.
What I'm trying to do is simply:
#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];
And I get this error on the last line:
+[AVPlayer playerWithURL:]: unrecognized selector sent to class 0x1000f30c8