I'm trying to create a video player for my Swift app, but I keep getting the error of 'unresolved identifier AVPlayerViewController'. What am I missing?
I'm a beginner at this, I may have to ask a few thousand times in layman's terms. I've been scouring the internet for perhaps a day now for a video for how to embed a Youtube video into my app, with no results. If you could point me over to a tutorial that would be awesome!
Thanks!
import AVKit
at the top of your file? – BathroomAVPlayerViewController
with a URL. You create anAVPlayer
with the URL and then set it as theplayer
property on the controller.AVPlayerViewControllerStyleNone
isn't a thing, what are you trying to do with that?import MediaPlayer
to import the MediaPlayer framework. – Bathroom