Chrome getUserMedia Not Requesting Permission Locally
Chrome blocks a lot of stuff on file:///
URIs without reporting a security error (eg. Geolocation). Your best option is to run from a local webserver, if you have Python installed try SimpleHTTPServer.
Google chrome DOMException: Permission denied by system for navigator.mediaDevices.getUserMedia
Since MacOS Mojave, camera and microphone require OS permissions.
This applies to all non-Apple products, including all browsers other than Safari.
Check System Preferences > Security & Privacy > Privacy > Camera & Microphone. Make sure Chrome is listed and has a checkbox.
You should have gotten a special OS prompt about this the first time Chrome tried to access them. But if it accidentally got blocked somehow, you won't ever be prompted again.
getUserMedia() permission denied
The second demo you mentioned (this one) works for me on Chrome 28.
It sounds like you enabled the flag, but make sure the one called Enable screen capture support in getUserMedia()
is enabled in chrome://flags
(and that you have restarted Chrome since enabling that).
Related Topics
HTML - How to Do a Confirmation Popup to a Submit Button and Then Send the Request
How to Move an Element That's on the Top to the Bottom in Responsive Design
Display:Inline with Margin, Padding, Width, Height
Why Should One Add Id to Their HTML Tags
Vertically Centering a Div in Body
How to Apply a Fade Away Effect (Not Animation) Across All the Content of a Div
How to Horizontally Scroll the Contents in Mobile/Tablet View in HTML/Css
Webkit Opacity Transition Issues with Text
Percentage Height Not Working in Nested Flexbox Layout in Chrome
Vertically Center Text in Bootstrap Carousel
How to Remove the Top Margin in a Web Page
Prevent Tabstop on a Element (Anchor Link) in HTML
Height of Flex Container Not Working Properly in Safari
Floating Elements Are Outside of Containing Blocks
Why Is 100% Height Not 100% of the Browser Height