Chrome始终允许网络摄像头通过http [英] Chrome always allow webcam over http
问题描述
我正在使用webrtc视频构建一个自助服务终端应用程序。它只在内部网络上提供,我希望能够始终通过http允许我的网站摄像头。使用ssl并不重要,只是一个额外的费用。
有没有办法做到这一点,或者我卡住了?
是的,管理员可以使用政策覆盖提示。
模式在此列表中将与请求URL的安全来源相匹配。如果找到匹配项,则无需提示即可授予对音频捕获设备的访问权限。注意:此政策目前仅在Kiosk模式下运行时受支持。
在Windows上,您使用regedit创建注册表项。
Software\Policies\Chromium\VideoCaptureAllowedUrls\1 =http://www.example.com/
Software\Policies\Chromium\VideoCaptureAllowedUrls\2 =http:// [*。] example.edu/
在Linux上,您将策略写入文件中:
mkdir -p / etc / opt / chrome / policies / managed
touch /etc/opt/chrome/policies/managed/test_policy.json
在test_policy.json中:
{
VideoCaptureAllowedUrls:[http:// www.example.com/,http:// [*。] example.edu/]
}
I am building a kiosk application using webrtc video. It is only served on the internal network and I would like to be able to always allow the webcam for my site over http. Using ssl isn't that important and is just an extra expense for a cert.
Is there any way to do this or am I stuck?
Yes, an admin can override the prompts with a policy.
Patterns in this list will be matched against the security origin of the requesting URL. If a match is found, access to audio capture devices will be granted without prompt. NOTE: This policy is currently only supported when running in Kiosk mode.
On Windows, you create registry entries using regedit.
Software\Policies\Chromium\VideoCaptureAllowedUrls\1 = "http://www.example.com/"
Software\Policies\Chromium\VideoCaptureAllowedUrls\2 = "http://[*.]example.edu/"
On Linux you write the policies in a file:
mkdir -p /etc/opt/chrome/policies/managed
touch /etc/opt/chrome/policies/managed/test_policy.json
In test_policy.json:
{
"VideoCaptureAllowedUrls": ["http://www.example.com/", "http://[*.]example.edu/"]
}
这篇关于Chrome始终允许网络摄像头通过http的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!