I am coding a video converter using NRECO and ffmpeg everything works but when it comes at to get the Progress time i've tried
pgbConversion.Value = FFMpegConverter.ConvertProgress();
but it is impossible so i got ! ** **ConvertProgress is an even; please check C# documentation about how to add an even handler.****
from NReco please how can i get the video progress knowing that ConvertProgrss is an event
You write this:
Your Visual Studio starts helping you out by offering to attach event handler code to the ConvertProgress event for you. It will show you a pop up, like MY visual studio is doing here, in this screenshot of me attaching an event handler to a Timer.Elapsed event, which is a totally different event, on a different object, that I'm using as an example to demonstrate how visual studio helps you attach events to things:
Then you press TAB in YOUR visual studio to accept the suggestion in the pop up
Visual Studio will scaffold a basic event handler for you, and you can add your code into it that you want to be run every time the event is raised. Here is what my visual studio did when I pressed tab during adding an event handler to my example using Timer:
(Naturally my pics show VS making a handler for Timer.Elapsed, not FFMpegConverter.ConvertProgress, because I have Timer, but I don't have that FFMpegConverter class.. "Pics are for illustration purposes only - you are NOT supposed to type the code you see in my pictures")