     
     var detailItem: AnyObject? {
         didSet {
-            self.configureView()
+            configureView()
         }
     }
     
     func configureView() {
-        if let detail: AnyObject = self.detailItem {
-            self.navigationItem.title = detail.description
+        if let detail: AnyObject = detailItem {
+            navigationItem.title = detail.description
         }
     }
     
     override func viewDidLoad() {
         super.viewDidLoad()
-        self.configureView()
+        configureView()
         UIApplication.sharedApplication().beginReceivingRemoteControlEvents()
-        self.becomeFirstResponder()
+        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)
         

            switch (event.subtype) {
            case .RemoteControlPlay:
                APIConnector.sharedInstance.sendCommand(.Pause)
                
            case .RemoteControlPause:
                APIConnector.sharedInstance.sendCommand(.Pause)
                
            case .RemoteControlNextTrack:
                APIConnector.sharedInstance.sendCommand(.Forward30Seconds)
                
            case .RemoteControlPreviousTrack:
                APIConnector.sharedInstance.sendCommand(.Backward30Seconds)
                
            default:
                break;
            }

    
    var currentMovieName = ""
    var player : AVAudioPlayer!
    var currentVolume : Float = 0.5

    // MARK: - IBAction methods
    
