             stillImageOutput = AVCaptureStillImageOutput()
         }
         if movieOutput == nil {
-            movieOutput = AVCaptureMovieFileOutput()
-            movieOutput?.movieFragmentInterval = CMTime.invalid
+            movieOutput = _getMovieOutput()
         }
         if library == nil {
             library = PHPhotoLibrary.shared()

    }
    
    /// Property to change camera flash mode.
    open var flashMode = CameraFlashMode.off {
        didSet {
            if cameraIsSetup && flashMode != oldValue {
                _updateIlluminationMode(flashMode)

    open var exposureMode: AVCaptureDevice.ExposureMode = .continuousAutoExposure
    
    /// Property to set video stabilisation mode during a video record session
    open var videoStabilisationMode: AVCaptureVideoStabilizationMode = .auto {
        didSet {
            if oldValue != videoStabilisationMode {
                _setupVideoConnection()
            }
        }
    }
    
    // MARK: - Private properties
    
