             }
         }
     }
+
+    func playerItemDidReachEnd(notification: NSNotification) {
+        mediaControlView.playState = .Pause
+    }
 }

                            let coundDownTime = Double(Int((durationSeconds - currentSeconds) * 10)) / 10
                            self.mediaControlView.timeLabel.text = "\(coundDownTime)"
                        })

                        mediaView.videoPlayerLayer.player = player



    @IBOutlet weak var mediaControlView: MediaControlView!

    deinit {
        NSNotificationCenter.defaultCenter().removeObserver(self)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
