02-10-2011 05:22 AM
I'm recording audio and I'd like to display a counter showing the length of the recording as it proceeds. I also support pause and resume - the counter should show the actual play-length of what has been recorded - i.e. the length should remain static during pause.
Is there any way to get the length of recorded audio (e.g. off the Player or RecordControl) durnig a recording?
Advanced BlackBerry Development (Chris King) suggests you can (via PlayerListener) but the player events I get are only recordStarted and recordStopped.
02-10-2011 08:30 AM
Thanks for teh suggestion, sonicboomboy, I'm also considering recording teh start time...
then recording duration = last_record_time - start_time - sum_of_pauses
where last_record_time = now (if recording) or time paused (if paused)
and sum_of_pauses updated every time recording resumes (sum_of_pauses += now-pause_time)
Apologies or excess detail - that was my design phase ;-)
A nice simple call on RecordController would be btter though ;-)