 	// MARK: Player
 
 	func videoPlayerView(videoPlayerView: VIMVideoPlayerView!, timeDidChange cmTime: CMTime) {
-		let cmTotal = videoPlayerView.player.player.currentItem!.duration
+		let cmTotal = videoPlayerView.player.player.currentItem?.duration ?? CMTimeMakeWithSeconds(0, 1)
 		videoProgress.setProgress(CGFloat(CMTimeGetSeconds(cmTime)/CMTimeGetSeconds(cmTotal)), animated: true)
 	}
 

	@IBOutlet var voteButtons: [UIButton]!

	private let playView = VIMVideoPlayerView()
	private var visible = false
	private var displayRelativeTime = true
    private var media: NSURL?



	override func viewDidAppear(animated: Bool) {
		super.viewDidAppear(animated)

		navigationController?.navigationBar.topItem?.title = sample.event.name
		playView.player.play()
