Duration and Current times of recording

All your problems with Audio, Video and Images.

Duration and Current times of recording

Postby Addion » Mon Jan 19, 2009 11:31 am

I want to make a progress bar when android's recording voice. However, I didn't any function in MediaRecorder involving about getDuration and getCurrentTime like in MediaPlayer.



Thanks
Addion
Developer
Developer
 
Posts: 29
Joined: Tue Nov 18, 2008 3:49 am

Top

Postby MrSnowflake » Mon Jan 19, 2009 11:34 am

That's because a recording doesn't have a duration, and if it did have a duration, it would always be the same as the current time, because you add at the end of the recording.

If you do want a progress bar, to indicate where you are in a recording with a max time of x seconds, you should have the progressbar increase as long as you are recording, and have it automatically stop after x seconds.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby Addion » Mon Jan 19, 2009 11:39 am

I got you. Anyway, How about the Maximum time that I can record. does it depedns on the rest of SDCard memory?
Addion
Developer
Developer
 
Posts: 29
Joined: Tue Nov 18, 2008 3:49 am

Postby MrSnowflake » Mon Jan 19, 2009 2:30 pm

Don't know, probably SD. But in either case I guess you have 10s of minutes to record. And in either case, this depends on the device!!!

You could easily test this :).
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby Addion » Tue Jan 20, 2009 5:32 am

Thanks you

I have another Q. What if the SDcard full while Android recording speech.
Addion
Developer
Developer
 
Posts: 29
Joined: Tue Nov 18, 2008 3:49 am

Postby MrSnowflake » Tue Jan 20, 2009 12:09 pm

It'll probably stop recording and go to the appropriate listener. This, can be tested pretty easilly too, make a small SD image.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests