没有SSL的getUserMedia()用于本地存储 [英] getUserMedia() without SSL for local storage

查看:99
本文介绍了没有SSL的getUserMedia()用于本地存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站中,我需要录制麦克风的音频,然后重播。
我不需要将这些文件发送到服务器,它们可以保留在客户端上。
目前我已成功使用flash,但我想切换到html5和getUserMedia()。
我知道我通常需要使用SSL来使用getUserMedia()(除了使用localhost),但我想知道如果我不想上传数据是否有某种豁免(和因此在使用它时应该没有安全问题。)

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).

推荐答案

没有豁免。有一个需要在某种具有单独本地存储且没有网络的本地沙箱中运行您的脚本。不存在。

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.

只有谷歌浏览器强制执行此 https 要求。其他浏览器没有。

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

获取免费证书是很容易。

这篇关于没有SSL的getUserMedia()用于本地存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆