From a0399b361a08c52a443c70c4bfaeafb43e38b6d2 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Sun, 14 Nov 2021 01:25:04 +0100 Subject: [PATCH] Add documentation comments to NotifyOn* methods --- FFMpegCore/FFMpeg/FFMpegArgumentProcessor.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/FFMpegCore/FFMpeg/FFMpegArgumentProcessor.cs b/FFMpegCore/FFMpeg/FFMpegArgumentProcessor.cs index 97ea94f..68738be 100644 --- a/FFMpegCore/FFMpeg/FFMpegArgumentProcessor.cs +++ b/FFMpegCore/FFMpeg/FFMpegArgumentProcessor.cs @@ -29,17 +29,32 @@ internal FFMpegArgumentProcessor(FFMpegArguments ffMpegArguments) private event EventHandler CancelEvent = null!; + /// + /// Register action that will be invoked during the ffmpeg processing, when a progress time is output and parsed and progress percentage is calculated. + /// Total time is needed to calculate the percentage that has been processed of the full file. + /// + /// Action to invoke when progress percentage is updated + /// The total timespan of the mediafile being processed public FFMpegArgumentProcessor NotifyOnProgress(Action onPercentageProgress, TimeSpan totalTimeSpan) { _totalTimespan = totalTimeSpan; _onPercentageProgress = onPercentageProgress; return this; } + /// + /// Register action that will be invoked during the ffmpeg processing, when a progress time is output and parsed + /// + /// Action that will be invoked with the parsed timestamp as argument public FFMpegArgumentProcessor NotifyOnProgress(Action onTimeProgress) { _onTimeProgress = onTimeProgress; return this; } + + /// + /// Register action that will be invoked during the ffmpeg processing, when a line is output + /// + /// public FFMpegArgumentProcessor NotifyOnOutput(Action onOutput) { _onOutput = onOutput;