             
             self._pixelBufferAdapter = AVAssetWriterInputPixelBufferAdaptor(assetWriterInput: videoInput, sourcePixelBufferAttributes: pixelBufferAttri)
         }
-        return self._videoInput != nil
+        return self.isVideoSetup
     }
     
     /// Prepares a session for recording audio.

            }
        }
    }

    /// Checks if the session is setup for recording video
    public var isVideoReady: Bool {
        get {
            return self._videoInput?.isReadyForMoreMediaData ?? false
        }
    }
    

            audioInput.expectsMediaDataInRealTime = true
            self._audioConfiguration = configuration
        }
        return self.isAudioSetup
    }
    
    internal func setupWriter() {
