mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.23k stars 22.5k forks source link

Constraint exerciser Demo lacks permissions #35832

Open eyaler opened 2 months ago

eyaler commented 2 months ago

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Media_Capture_and_Streams_API/Constraints

What specific section or headline is this issue about?

Result (demo)

What information was incorrect, unhelpful, or incomplete?

Video does not play on chrome 128 or firefox 130, with error message: Error NotAllowedError in constraint undefined: Permission denied

What did you expect to see?

video

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details * Folder: `en-us/web/api/media_capture_and_streams_api/constraints` * MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/Media_Capture_and_Streams_API/Constraints * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/media_capture_and_streams_api/constraints/index.md * Last commit: https://github.com/mdn/content/commit/cfb7587e3e3122630ad6cbd94d834ecadbe0a746 * Document last modified: 2024-07-26T03:44:38.000Z
ragul1697 commented 2 months ago

You have to provide permissions for Camera and Microphone.

The HTML and CSS for this example are pretty simple, and aren't shown here. You can look at the complete example by clicking here.

You can check the example by opening it in a new tab. It will ask for permission if not provided already. The issue in Result section maybe the permission are not given or it is running in a sandbox environment.