JSSoundRecorder icon indicating copy to clipboard operation
JSSoundRecorder copied to clipboard

Demo is not working in Chrome

Open Mageshkumar-Rajendran opened this issue 8 years ago • 7 comments

please check and give me some solution. It is not working in any browser i just check it but i cant fix the problem.

Mageshkumar-Rajendran avatar Jun 18 '16 13:06 Mageshkumar-Rajendran

Hi @Mageshkumar-Rajendran,

Please give a bit more details on what your problem is, what errors do you see in the browser console and what operating system / browser version you're using otherwise it's difficult to help you.

daaain avatar Jun 18 '16 22:06 daaain

i'm using windows 10 os , chrome version is 51.0.2704.103 m , Firefox version is 47.0

Actullay i get the time but i did not get the voice.

In firefox console i get the following, Audio context set up. recordLive.js (line 116) navigator.getUserMedia available. recordLive.js (line 117) ACFFT initiliazed ACFFT.js (line 99) Recording... recordLive.js (line 31) Stopped recording.

Please check and give me a solution if you need more details about the problem please ask me.

Mageshkumar-Rajendran avatar Jun 20 '16 04:06 Mageshkumar-Rajendran

Just had a look, had the same results as you.

Chrome flat out refuses to record saying "getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."

Firefox is supposed to work (though there are deprecation warnings there too), but I also don't get any sound back.

To be honest this was a one time hack which I totally don't maintain and I'm on holiday right now so not sure if I'll have time to debug, but if you find out why is it not working in Firefox (or even submit a pull request) I'm happy to update it.

daaain avatar Jun 25 '16 16:06 daaain

hi...

Thank you very much for your reply.

and If i find out why it is not working (Firefox) i will inform you. here i have schedule with other work so i will try my best, and also if you have time to fix please check it.

once again thank you.

On Sat, Jun 25, 2016 at 9:53 PM, Daniel Demmel [email protected] wrote:

Just had a look, had the same results as you.

Chrome flat out refuses to record saying "getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details."

Firefox is supposed to work (though there are deprecation warnings there too), but I also don't get any sound back.

To be honest this was a one time hack which I totally don't maintain and I'm on holiday right now so not sure if I'll have time to debug, but if you find out why is it not working in Firefox (or even submit a pull request) I'm happy to update it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/daaain/JSSoundRecorder/issues/13#issuecomment-228553891, or mute the thread https://github.com/notifications/unsubscribe/ATFi_NGs1gRv6sZhyCg5dVXAzMq0H_cHks5qPVYRgaJpZM4I48VC .

Mageshkumar-Rajendran avatar Jun 28 '16 07:06 Mageshkumar-Rajendran

Chrome blocks http domains, please use https domain (for example free Firebase static file hosting, comes with https support out of the box)

andraz avatar Jul 24 '18 10:07 andraz

not working on chrome 88.0.4324.182 macOS 10.15.7 (x86_64) with https

can record, but when hit play, nothing happens

jiangyi1985 avatar Feb 22 '21 02:02 jiangyi1985

I should update that URL in the readme, but it actually redirects to HTTPS now, so that's not the issue.

Recording and playback seem to actually work in Firefox 86.

If you open the console in Chrome, you can see that apparently now the AudioContext has to be created on user interaction:

drone.js:1 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu (anonymous) @ drone.js:1 43[Deprecation] The ScriptProcessorNode is deprecated. Use AudioWorkletNode instead. (<URL>) recordLive.js:115 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu

I won't really have time to fix this, but happy to review a pull request.

daaain avatar Mar 12 '21 23:03 daaain