Recorderjs icon indicating copy to clipboard operation
Recorderjs copied to clipboard

How to implement Pause functionality while recording using recorder.js

Open ankitaagrawal opened this issue 10 years ago • 7 comments

I am using recorder.js to upload user's audio files on our server. Its working properly in chrome and firefox..

http://216.245.194.124/recorduploadsample.com/

In the above sample start, stop and Play functionality are there which is working in chrome and firefox both browsers

But now I want to add "Pause" functionality in this means user should be able to pause while recording and again start after some time...On server only one file should uploaded that having all the content means before and after pause..All should be in one file and that should uploaded on server.

Can anyone help me?

Thanks in Advance

ankitaagrawal avatar Apr 08 '14 13:04 ankitaagrawal

That sounds like you just want to implement a flag to skip adding the buffers.

cwilso avatar Apr 08 '14 17:04 cwilso

Yes, Thanks for suggestion...can you suggest any solution or sample code using recorder.js that I can implement in my application.

ankitaagrawal avatar Apr 09 '14 13:04 ankitaagrawal

Actually, the way Matt's structured the code, you don't even need to do this. To "pause" recording, simply call stop(), and then call record() to continue recording - i.e., don't call clear() or getBuffers() in between. That should simply skip recording in between pause and record.

cwilso avatar Apr 09 '14 15:04 cwilso

ok..thanks

ankitaagrawal avatar Apr 09 '14 15:04 ankitaagrawal

Thanks a ton...Its working :)

ankitaagrawal avatar Apr 09 '14 16:04 ankitaagrawal

@ankitaagrawal - can you share your code please . and how to save recorded audio direct local not on server.

umesh25 avatar Apr 29 '14 13:04 umesh25

pls share your code

Full-stack-Web-Dev-BD avatar Jun 20 '20 05:06 Full-stack-Web-Dev-BD