                 self.beginConfiguration()
                 self.previewLayer.session = session
                 
-                self.configureSessionOutput()
-                self.configureSessionInput()
+                self.configureSession()
+                self.configureDevices()
                 
                 self.updateVideoOrientation()
                 self.commitConfiguration()

        }
    }
    
    internal func configureSessionInput() {
        if self.captureSession != nil {
            self.beginConfiguration()
            


    public var cameraMode: NextLevelCaptureMode {
        didSet {
            self.configureSession()
            self.configureDevices()
        }
    }
        
    public var devicePosition: NextLevelDevicePosition {
        didSet {
            self.configureDevices()
        }
    }
    
