admin管理员组

文章数量:1023794

I am using getUserMedia() for video streaming in node.js and angular project(MEAN). My <video> tag is inside partial file. This project is running smoothly & patible in Google Chrome, Opera and Firefox in local server. But when I am trying to run it over Ubuntu server using Google Chrome (only problem with Chrome), video is not showing.
Error details in console as follows:

(program):84 navigator.getUserMedia error: PermissionDeniedError(error name)

I am using chrome version 47.0.2526.80 .I am using http for this project. I am also getting warning to switching my application to a secure origin, such as HTTPS. Why it is not running properly in Chrome.

I am using getUserMedia() for video streaming in node.js and angular project(MEAN). My <video> tag is inside partial file. This project is running smoothly & patible in Google Chrome, Opera and Firefox in local server. But when I am trying to run it over Ubuntu server using Google Chrome (only problem with Chrome), video is not showing.
Error details in console as follows:

(program):84 navigator.getUserMedia error: PermissionDeniedError(error name)

I am using chrome version 47.0.2526.80 .I am using http for this project. I am also getting warning to switching my application to a secure origin, such as HTTPS. Why it is not running properly in Chrome.

Share Improve this question edited Dec 14, 2015 at 13:44 Mr Lister 46.6k15 gold badges113 silver badges155 bronze badges asked Dec 9, 2015 at 11:47 RajibRajib 6388 silver badges18 bronze badges 3
  • ubuntu has its own browser chromium did you check in chromium – Rana Ahmer Yasin Commented Dec 9, 2015 at 11:49
  • Be more specific, show your code please. – Jairo Commented Dec 9, 2015 at 11:51
  • 1 Deprecated: navigator.getUserMedia: This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the patibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. @Rajib – Mr doubt Commented Nov 1, 2016 at 12:05
Add a ment  | 

1 Answer 1

Reset to default 4

Google Chrome has stopped supporting getUserMedia() along with some other features like Geolocation, Fullscreen etc. on insecure origins. I think it allows these features for localhost in order to enable testing but they won't work on an actual server.

Here is the related announcement from google:

https://sites.google./a/chromium/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins

I am using getUserMedia() for video streaming in node.js and angular project(MEAN). My <video> tag is inside partial file. This project is running smoothly & patible in Google Chrome, Opera and Firefox in local server. But when I am trying to run it over Ubuntu server using Google Chrome (only problem with Chrome), video is not showing.
Error details in console as follows:

(program):84 navigator.getUserMedia error: PermissionDeniedError(error name)

I am using chrome version 47.0.2526.80 .I am using http for this project. I am also getting warning to switching my application to a secure origin, such as HTTPS. Why it is not running properly in Chrome.

I am using getUserMedia() for video streaming in node.js and angular project(MEAN). My <video> tag is inside partial file. This project is running smoothly & patible in Google Chrome, Opera and Firefox in local server. But when I am trying to run it over Ubuntu server using Google Chrome (only problem with Chrome), video is not showing.
Error details in console as follows:

(program):84 navigator.getUserMedia error: PermissionDeniedError(error name)

I am using chrome version 47.0.2526.80 .I am using http for this project. I am also getting warning to switching my application to a secure origin, such as HTTPS. Why it is not running properly in Chrome.

Share Improve this question edited Dec 14, 2015 at 13:44 Mr Lister 46.6k15 gold badges113 silver badges155 bronze badges asked Dec 9, 2015 at 11:47 RajibRajib 6388 silver badges18 bronze badges 3
  • ubuntu has its own browser chromium did you check in chromium – Rana Ahmer Yasin Commented Dec 9, 2015 at 11:49
  • Be more specific, show your code please. – Jairo Commented Dec 9, 2015 at 11:51
  • 1 Deprecated: navigator.getUserMedia: This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the patibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time. @Rajib – Mr doubt Commented Nov 1, 2016 at 12:05
Add a ment  | 

1 Answer 1

Reset to default 4

Google Chrome has stopped supporting getUserMedia() along with some other features like Geolocation, Fullscreen etc. on insecure origins. I think it allows these features for localhost in order to enable testing but they won't work on an actual server.

Here is the related announcement from google:

https://sites.google./a/chromium/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins

本文标签: javascriptWhy getUserMedia() showing permission denied error in chromeStack Overflow