mattdiamond / Recorderjs

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

Google Chrome dont working #143

Open rodrigorojas opened 8 years ago

rodrigorojas commented 8 years ago

Excuse me.

Anyone know whats happening with Google Chrome that cant work with this code after last update?

Thank you so much.

The console show: 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.

ZengruiWang commented 8 years ago

Mine doesn't work to, it throws an exception Uncaught TypeError: mediaStream.stop is not a function, but works fine on firefox

cwilso commented 8 years ago

Exactly what it says - getUserMedia is a "powerful API", and so Chrome now requires it to be used from a secure origin. Other than localhost, you should serve it via HTTPS.

ashconnell commented 8 years ago

They recently made this restriction to geolocation as well. Just as an FYI.

cwilso commented 8 years ago

This is a core security decision - that powerful API access (i.e., APIs that need to prompt the user) shouldn't work in non-secure domains, as that API access may get bled over to non-secure actors.

sixtyfive commented 8 years ago

@mattdiamond I think this should be closed as it's not a bug in RecorderJS rather than a feature in Chrome and the rationale for it has been given above by @cwilso.