 public enum BoumBoumError: ErrorType {
     case AlreadyRunning
     case AlreadyStopped
+    case CameraUnavailable
     case TorchModeUnsupported
     case CameraLockFailed(NSError)
     case CameraDeviceInputCreationFailed(NSError)

        videoOutput.videoSettings = [
            kCVPixelBufferPixelFormatTypeKey: NSNumber(unsignedInt: kCVPixelFormatType_32BGRA)
        ]
        //TODO: videoOutput.minFrameDuration = CMTimeMake(1, 10);
        return videoOutput
    }


    }

    public let session: AVCaptureSession
    public let camera: AVCaptureDevice?
    public weak var delegate: BoumBoumDelegate?

    public private(set) var state = State.Stopped
