简体   繁体   English

使用jquery / javascript / php启用麦克风,而无需用户每次单击允许麦克风

[英]Enabling microphone with jquery/javascript/php without user having to click allow microphone everytime

I am creating a voice command operated website. 我正在创建一个语音命令操作的网站。 Everything works fine but the problem is, user needs to click allow microphone every time on load or after some time if not used. 一切正常,但问题是,用户每次加载时都需要单击允许麦克风,或者如果不使用,则需要一段时间后单击。

Reason: My website is http not https, so it does not get remembered. 原因:我的网站不是http,而是https,因此不会被记住。

So, Can microphone be enabled with jquery/javascript/php once the user gives permission? 因此, 一旦用户给予许可可以通过jquery / javascript / php启用麦克风吗?

I have been searching over the internet for couple of days, yet I could not find any solutions. 我已经在互联网上搜索了几天,但找不到任何解决方案。

Thank you! 谢谢!

You should make it on HTTPS. 您应该在HTTPS上创建它。

Chrome do right thing this time, it is security. Chrome这次做对的事情是安全。

For http not https website, hackers can hack DNS and start listening from the PC if the user did remember. 对于http不是https的网站,如果用户记得的话,黑客可以入侵DNS并开始从PC侦听。 Note, your server and the client PC are not hacked in this case. 请注意,在这种情况下,您的服务器和客户端PC不会被黑客入侵。

In the case of https, they have to hack either your site to get your certificate. 对于https,他们必须破解您的任一网站才能获得证书。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM