     Stop recording a video. Save it to the cameraRoll and give back the url.
     */
     public func stopRecordingVideo(completition:(videoURL: NSURL, error: NSError?) -> Void) {
-        if let runningMovieOutput = self.movieOutput {
+        if let runningMovieOutput = movieOutput {
             if runningMovieOutput.recording {
-                self.videoCompletition = completition
+                videoCompletition = completition
                 runningMovieOutput.stopRecording()
             }
         }

    :returns: Current quality mode: Low / Medium / High
    */
    public func changeQualityMode() -> CameraOutputQuality {
        self.cameraOutputQuality = CameraOutputQuality(rawValue: (self.cameraOutputQuality.rawValue+1)%3)!
        return self.cameraOutputQuality
    }
    
    // MARK: - AVCaptureFileOutputRecordingDelegate

    public func captureOutput(captureOutput: AVCaptureFileOutput!, didStartRecordingToOutputFileAtURL fileURL: NSURL!, fromConnections connections: [AnyObject]!) {
        self.captureSession?.beginConfiguration()
        if self.flashMode != .Off {
            self._updateTorch(self.flashMode)
        }
        self.captureSession?.commitConfiguration()
    }

    public func captureOutput(captureOutput: AVCaptureFileOutput!, didFinishRecordingToOutputFileAtURL outputFileURL: NSURL!, fromConnections connections: [AnyObject]!, error: NSError!) {
        self._updateTorch(.Off)
        if (error != nil) {
            self._show(NSLocalizedString("Unable to save video to the iPhone", comment:""), message: error.localizedDescription)
        } else {
            if let validLibrary = self.library {
                if self.writeFilesToPhoneLibrary {
                    validLibrary.writeVideoAtPathToSavedPhotosAlbum(outputFileURL, completionBlock: { (assetURL: NSURL?, error: NSError?) -> Void in
                        if (error != nil) {
                            self._show(NSLocalizedString("Unable to save video to the iPhone.", comment:""), message: error!.localizedDescription)

        set(newflashMode) {
            if newflashMode != _flashMode {
                _flashMode = newflashMode
                _updateFlasMode(newflashMode)
            }
        }
    }
