/// <summary> /// Creates a <see cref="FlvExtractor"/> that extracts only the video track. /// </summary> /// <param name="inputStream">The input stream. This is your raw FLV data.</param> /// <param name="outputStream">The video output stream. This is the stream that the video track gets written to.</param> public static FlvExtractor CreateVideoExtractor(Stream inputStream, Stream outputStream) { if (inputStream == null) ThrowExceptions.Custom(Exc.GetStackTrace(), type, Exc.CallingMethod(),ArgumentNullException("inputStream"); if (outputStream == null) ThrowExceptions.Custom(Exc.GetStackTrace(), type, Exc.CallingMethod(),ArgumentNullException("outputStream"); var file = new FLVFile(inputStream, videoOutputStream: outputStream); return new FlvExtractor { file = file, infoFunc = () => new ExtractionInfo(file.VideoFormat) }; }
/// <summary> /// Creates a <see cref="FlvExtractor"/> that extracts only the video track. /// </summary> /// <param name="inputStream">The input stream. This is your raw FLV data.</param> /// <param name="outputStream">The video output stream. This is the stream that the video track gets written to.</param> public static FlvExtractor CreateVideoExtractor(Stream inputStream, Stream outputStream) { if (inputStream == null) throw new ArgumentNullException("inputStream"); if (outputStream == null) throw new ArgumentNullException("outputStream"); var file = new FLVFile(inputStream, videoOutputStream: outputStream); return new FlvExtractor { file = file, infoFunc = () => new ExtractionInfo(file.VideoFormat) }; }
/// <summary> /// Creates a <see cref="FlvExtractor"/> that extracts only the video track. /// </summary> /// <param name="inputStream">The input stream. This is your raw FLV data.</param> /// <param name="outputStream">The video output stream. This is the stream that the video track gets written to.</param> public static FlvExtractor CreateVideoExtractor(Stream inputStream, Stream outputStream) { if (inputStream == null) { throw new ArgumentNullException("inputStream"); } if (outputStream == null) { throw new ArgumentNullException("outputStream"); } var file = new FLVFile(inputStream, videoOutputStream: outputStream); return(new FlvExtractor { file = file, infoFunc = () => new ExtractionInfo(file.VideoFormat) }); }