I searched around but haven’t found the answer. I’m recording video using MediaRecorder class and setMaxDuration(10000) method. However I want to show how much time has elapsed in a progress bar of this 10 seconds. I only see examples of using getDuration method with MediaPlayer class. Can anyone give me an example of how to use MediaRecorder with progress bar? Thanks a lot.
I searched around but haven’t found the answer. I’m recording video using MediaRecorder class
Share
Just use a
Timer.This will operate the
progressBaron a separate thread from the recording, but it will finish in 10 seconds, at which time you can stop the recording, finalize, and such.