[英]Why getUserMedia() showing permission denied error in chrome
I am using getUserMedia() for video streaming in node.js and angular project(MEAN). 我在node.js和angular项目(MEAN)中使用getUserMedia()进行视频流传输。 My
<video>
tag is inside partial file. 我的
<video>
标签位于部分文件中。 This project is running smoothly & compatible in Google Chrome, Opera and Firefox in local server. 该项目在本地服务器上的Google Chrome,Opera和Firefox中运行顺畅,兼容。 But when I am trying to run it over Ubuntu server using Google Chrome (only problem with Chrome), video is not showing.
但是,当我尝试使用谷歌浏览器在Ubuntu服务器上运行它时(只有Chrome问题),视频没有显示。
Error details in console as follows: 控制台中的错误详细信息如下:
(program):84 navigator.getUserMedia error: PermissionDeniedError(error name) (程序):84 navigator.getUserMedia错误:PermissionDeniedError(错误名称)
I am using chrome version 47.0.2526.80 .I am using http for this project. 我使用的是chrome版本47.0.2526.80。我在这个项目中使用http。 I am also getting warning to switching my application to a secure origin, such as HTTPS.
我也正在警告将我的应用程序切换到安全的来源,例如HTTPS。 Why it is not running properly in Chrome.
为什么它在Chrome中无法正常运行。
Google Chrome has stopped supporting getUserMedia()
along with some other features like Geolocation
, Fullscreen
etc. on insecure origins. 谷歌Chrome已经停止支持
getUserMedia()
以及其他一些功能,如Geolocation
, Fullscreen
等不安全的起源。 I think it allows these features for localhost in order to enable testing but they won't work on an actual server. 我认为它允许localhost的这些功能,以便启用测试,但它们不能在实际的服务器上工作。
Here is the related announcement from google: 以下是谷歌的相关公告:
https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.