Fluent-ffmpeg - Make the stream argument for the pipe function optional

- Per fluent-ffmpeg documentation: (https://github.com/fluent-ffmpeg/node-fluent-ffmpeg#pipestream-options-pipe-the-output-to-a-writable-stream) - “When no stream argument is present, the pipe() method returns a PassThrough stream, which you can pipe to somewhere else (or just listen to events on).”
This commit is contained in:
gianna
2018-09-16 22:32:23 -07:00
parent d9c8fecb5f
commit 79cf98f52a
+1 -1
View File
@@ -290,7 +290,7 @@ declare namespace Ffmpeg {
saveToFile(output: string): FfmpegCommand;
save(output: string): FfmpegCommand;
writeToStream(stream: stream.Writable, options?: { end?: boolean }): stream.Writable;
pipe(stream: stream.Writable, options?: { end?: boolean }): stream.Writable;
pipe(stream?: stream.Writable, options?: { end?: boolean }): stream.Writable|stream.PassThrough;
stream(stream: stream.Writable, options?: { end?: boolean }): stream.Writable;
takeScreenshots(config: number | ScreenshotsConfig, folder?: string): FfmpegCommand;
thumbnail(config: number | ScreenshotsConfig, folder?: string): FfmpegCommand;