 
 	var transitionStartY: CGFloat = 0.0
 
+	private let maxVideoDuration = 10.0
+	private let minVideoDuration = 5.0
 	let vision = PBJVision.sharedInstance()
 	var timer: NSTimer!
 

	// MARK: - Recording

	func observeTimerInterval() {
		timerBar.progress = CGFloat(vision.capturedVideoSeconds / 30.0)

		if timerBar.progress >= 0.5 {
			timerBar.progressTintColor = UIColor.greenColor()

	func vision(vision: PBJVision, capturedVideo videoDict: [NSObject : AnyObject]?, error: NSError?) {
		if error == nil {
			if let out = videoDict?[PBJVisionVideoPathKey] as? String {
				if let duration = videoDict?[PBJVisionVideoCapturedDurationKey] as? Double where duration >= minVideoDuration {
					host?.recordedSample(NSURL(fileURLWithPath: out))
				} else {
					try? NSFileManager.defaultManager().removeItemAtPath(out)
