         }
         alertController.addAction(OKAction)
         
-        self.presentViewController(alertController, animated: true, completion: nil)
+        presentViewController(alertController, animated: true, completion: nil)
     }
     
     @IBAction func pausePlayback(sender: AnyObject) {

    
    var currentMovieName = ""
    var player : AVAudioPlayer!

    // MARK: - IBAction methods
    

    
    var detailItem: AnyObject? {
        didSet {
            configureView()
        }
    }
    
    func configureView() {
        if let detail: AnyObject = detailItem {
            navigationItem.title = detail.description
        }
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        configureView()
        UIApplication.sharedApplication().beginReceivingRemoteControlEvents()
        becomeFirstResponder()

        // Configure audio session
        let sess = AVAudioSession.sharedInstance()
        sess.addObserver(self,
            forKeyPath: "outputVolume",
            options: NSKeyValueObservingOptions.allZeros,
            context: nil)
        sess.setCategory(AVAudioSessionCategoryPlayback, withOptions: nil, error: nil)
        sess.setActive(true, withOptions: nil, error: nil)
        
