-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when clicked stop #37
Comments
had this problem too , it seems that the variable that holds the MicRecorder element gets reseted after the start. if you debug the code live you can see that when in the start function you indeed have the lameEncoder property on the Mp3Recorder but when leaving the code block that called the start function the lameEncoder property dissappear from the element and that he gets reseted. then when calling the finish function it doesnt have the lameEncoder property at all!. maybe im not understanding the code as i am not one of the contributers so please dont take what i wrote as grunted please. |
its me again, i dont know if i had the same problem as yours but for me it was that im using react functional components and i declared the variable like this: const recorder = new MicRecorder({ bitRate: 128 }). |
@nadavS3 Thanks for the solution.. Worked for me after changing |
Thanks @nadavS3 - had the same issue and your solution worked perfectly. If anyone else would find it useful, here's a full but extremely minimal working template for this as a functional component:
|
how to pause and resume the recording |
Hello,
I am using this example: https://github.com/closeio/mic-recorder-to-mp3#how-to-use and converted it to functional component.
I have got the below error after stop action.
console.log(this.lameEncoder); is null
Any suggestions on how to fix this?
The text was updated successfully, but these errors were encountered: