Javascript microphone access, header in .htaccess?

http://tietaja.epizy.com/DELLEVISION.html

This is a sound visualization script, it fails to access the user’s microphone from the server; but runs fine on my hard drive. I tried enabling the “Feature-Policy: microphone *” header in .htaccess, but it still fails. Any help appreciated…

JavaScript is run off of the client, the server really has nothing to do with this.

I’m pretty sure microphone is auto blocked on http pages, make sure you have set up https, then try again.

8 Likes

Thankyou, that was the problem with the javascript method that accesses the microphone, it needed to be https. It was free to set it up with infinity, and a simple process. An https top level domain! who would have thought of it!

A lot of things are blocked on http pages, like notifications for example, or service workers!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.