import UIKit import MediaPlayer class ViewController: UIViewController { var moviePlayer:MPMoviePlayerController! override func viewDidLoad() { super.viewDidLoad() var url:NSURL = NSURL(string: "http://sample.com/video.mov")! self.moviePlayer = MPMoviePlayerController(contentURL: url) self.moviePlayer.view.frame = CGRect(x: 0, y: 0, width: self.view.frame.width, height: self.view.frame.height) sel