         observer.on(.completed)
     }
     
-    func processVideo(info: [String : Any], observer: AnyObserver<URL>, maxDuration: TimeInterval, picker: UIImagePickerController) {
+    func processVideo(info: [String : Any],
+                      observer: AnyObserver<URL>,
+                      maxDuration: TimeInterval,
+                      picker: UIImagePickerController) {
         guard let videoURL = info[UIImagePickerControllerMediaURL] as? URL else {
             observer.on(.error(RxMediaPickerError.generalError))
             dismissPicker(picker)

        }
    }
    
    open func selectVideo(source: UIImagePickerControllerSourceType = .photoLibrary, maximumDuration: TimeInterval = 600, editable: Bool = false) -> Observable<URL> {
        
        return Observable.create { [unowned self] observer in
            self.currentAction = RxMediaPickerAction.video(observer: observer, maxDuration: maximumDuration)
            

        self.delegate = delegate
    }
    
    open func recordVideo(device: UIImagePickerControllerCameraDevice = .rear,
                          quality: UIImagePickerControllerQualityType = .typeMedium,
                          maximumDuration: TimeInterval = 600, editable: Bool = false) -> Observable<URL> {
        return Observable.create { observer in
            self.currentAction = RxMediaPickerAction.video(observer: observer, maxDuration: maximumDuration)
            
