mattdiamond / Recorderjs

A plugin for recording/exporting the output of Web Audio API nodes
4.16k stars 1.46k forks source link

Limiting to One audio recording #205

Open n-is-k opened 3 years ago

n-is-k commented 3 years ago

I am in the process of creating a audio submission form.

I wondered if - similar to other forms, there is a way to limit users to record only one audio file. I have managed to limit time - after 1 min the stopRecording function is passed.

I tried using the rec.clear function - but it's not working in the way i would like it to.

My aim - is that even after finishing recording - a 'clear' button will delete the previously recorded file - it should also clear anything that is in the process of being recorded - so a full refresh.

Also - if it's possible for the previously recorded file to be overwritten if the user clicks Record again - preventing multiple entries.

Thanks in advance!