getUserMedia() without SSL for local storage

邮差的信 提交于 2020-01-05 04:15:31

问题


In my website I need to record audio from the microphone and then replay it. I do not need to send those files to the server, they can remain on the client. Currently I'm successfully using flash for that, but I would like to switch to html5 and getUserMedia(). I'm aware that I normally need SSL for using getUserMedia() (except from localhost use), but I'm wondering if there is some sort of exemption if I don't want the data to be uploaded (and thus there should be no security issues in using it).


回答1:


There's no exemption. Having one would require running your script in some sort of local sandbox with separate local storage and no networking. Does not exist.

Only Google Chrome enforces this https requirement by the way. Other browsers do not.

Getting a free certificate is easy.



来源:https://stackoverflow.com/questions/41260985/getusermedia-without-ssl-for-local-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!