Recorderjs icon indicating copy to clipboard operation
Recorderjs copied to clipboard

Sometimes it is creating wav file of 0.0 duration on firefox

Open Nirupma opened this issue 9 years ago • 1 comments

Sometimes it is creating wav file of 0.0 duration on firefox

Below is the firebug DOM element output :

context AudioContext { destination=AudioDestinationNode, sampleRate=44100, currentTime=8.080007618524945, more...} currentTime 8.080007618524945 destination AudioDestinationNode { maxChannelCount=2, context=AudioContext, numberOfInputs=1, more...} listener
AudioListener { dopplerFactor=1, speedOfSound=343.3, setPosition=setPosition(), more...} onstatechange null sampleRate 44100 state "suspended"

state - keeps changing from suspended to running while recording. So when recording is stopped after 2 mins, 0.0 min wav file is generated.

Is the state change is the cause for generating 0.0 sec file or I am missing on something. And if that the reason how to it can be handled.

Thanks in Advance.

Nirupma avatar Nov 27 '15 06:11 Nirupma

Even I am facing the same issue. When inspected the object using firebug, the state attribute mentioned above was suspended and file was generated was of 0 sec but when the state was running then the file was generated successfully of specified time. How can we control this, or what is causing the state to be in suspended mode. Is that the issue for 0 mins file?

mitulkarnik avatar Nov 27 '15 10:11 mitulkarnik