最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - Why getUserMedia() showing permission denied error in chrome - Stack Overflow

matteradmin7PV0评论

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

Post a comment

comment list (0)

  1. No comments so far