clearing a recording

Topics that don't fit anywhere else.

clearing a recording

Postby edwardsmarkf » Tue Mar 29, 2011 4:26 pm

(sorry but i have to post this again, since the issue has come up again)

i would like to be able to change the default behavior of the recorder if somebody presses RECORD, STOP, and RECORD again.

currently the new recording is being appended to the end of the existing recording. i wish to change it to make it 'clear' the first recording and start with a new one.


the jscript code below does it, but this seems like an odd approach.

function LUPJS_StateChanged( previousState, newState ) {
. . . if ( previousState == 'stopped' && newState == 'recording' ) {
. . . . . . . .if ( document.JavaSonicRecorderUploader.isPlayable() ) {
. . . . . . . . . . . .document.JavaSonicRecorderUploader.erase();
. . . . . . . . . . . document.JavaSonicRecorderUploader.record();
. . . . . . . .}
. . . .};
}

a recorder as sophisticated as listenup has a better way, right ?

thanks!
edwardsmarkf
 
Posts: 30
Joined: Tue Sep 07, 2010 9:10 pm

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron