I am new to swift and getting problem in making AVPlayerViewController.player go to full screen in ViewController: AVPlayerViewController
here is code I am using in viewDidAppear to play the video
let path = NSBundle.mainBundle().pathForResource("video", ofType: "mp4")!
let url = NSURL(fileURLWithPath: path)
let player = AVPlayer(URL: url)
self.player = player
self.showsPlaybackControls = false
self.player!.play()
I am making playBackControlls hidden, and required to make video view to full screen...