I am doing application with MediaRecorder, i want to display the time limit of recording the audio. MediaRecorder is only used to record the voice. anyone know how to display the time while doing MediaRecorder.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have the ground work laid for the recording and stopping of audio with MediaRecorder written, obtaining duration of recording isn’t too difficult.
Displaying duration is simply
start_timebeing set toSystem.currentTimeMillis();at start of record.Then by using a
Runnablewe can perform a loop until stop of record.Then with the
updateTextView()you’d do something like this: