Contact emails
lemi...@google.com,
tun...@google.com
Explainer
https://github.com/WICG/PEPC/blob/main/usermedia_element.mdhttps://github.com/WICG/PEPC/blob/main/explainer.md
Specification
https://wicg.github.io/PEPC/permission-elements.html
Summary
Context-aware media element(s), are a declarative, user-activated control for accessing the starting and interacting with media streams.
This addresses the long-standing problem of permission prompts being triggered directly from JavaScript without a strong signal of user intent. By embedding a browser-controlled element in the page, the user's click provides a clear, intentional signal. This enables a much better prompt UX and, crucially, provides a simple recovery path for users who have previously denied the permission.
Note: This feature was previously developed and tested in an Origin Trial as the more generic <permission> element. Based on feedback from developers and other browser vendors, it has evolved into capability-specific elements to provide a more tailored and powerful developer experience.
Blink component
Blink>PermissionsAPI
Web Feature ID
permissions
Risks
Interoperability and Compatibility
There is a risk that this feature fails to be adopted by other browsers. This can be mitigated by backwards designing a reasonable fallback mechanism so that the element can degrade gracefully if the it's in an unsupported environment.
Gecko: Under consideration (
https://github.com/mozilla/standards-positions/issues/1245)
WebKit: No signal
Web developers: Positive
Other signals:
Security
https://github.com/WICG/PEPC/blob/main/explainer.md#Security
WebView application risks
Does this intent deprecate or change behavior of existing APIs,
such that it has potentially high risk for Android WebView-based
applications?
No information provided
Debuggability
The element raises issues to the devtools issues panel which help developers debug issues with their usage of the element.
Will this feature be supported on all six Blink platforms
(Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?
No
The element is not supported on Android WebView as it requires permission manager support to function and the WebView permission manager defers most permission decisions to the embedder by design.
Yes
https://wpt.fyi/results/html/semantics/permission-element/usermedia
DevTrial instructions
https://github.com/WICG/PEPC/blob/main/HOWTO.md#enabling-usermedia
Flag name on about://flags
No information provided
Finch feature name
UserMediaElement
Requires code in //chrome?
True
Tracking bug
https://crbug.com/443013457
Estimated milestones
| DevTrial on desktop | 144 |
| DevTrial on Android | 144 |
Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/4926233538330624
Links to previous Intent discussions
Intent to Prototype:
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/692719de.050a0220.17ec37.00c3.GAE%40google.com