I would like to add a progress bar showing the real percentage of completion of a task (compressing a video using ffmpeg) in my app. At the moment, I just found examples with delays that seem real, but they aren’t.
Right now, I’m using Progress Dialog:
but I don’t know how to show the percentage and it says it’s deprecated.
In order to compress the video, I use “com.arthenica.ffmpegkit.FFmpegKit”, but I didn’t find a way to get the progress from there.
What’s the best option here?