Does anyone have example code in SWIFT on how to play a local movie file with AVPlayer?
Here's what I was looking for, hopfully this will help others later down the road.
var playerLayer: AVPlayer?
let videoURL: NSURL = NSBundle.mainBundle().URLForResource("Para1_2", withExtension: "mp4")!
let player = AVPlayer(URL: videoURL)
playerLayer = AVPlayerLayer(player: player)
playerLayer!.frame = self.view!.bounds
self.view!.layer.addSublayer(playerLayer!)
player.play()