Skip to content

Commit 6bbd073

Browse files
authored
Add <usermedia> HTML element feature (#3983)
Issue: #3972
1 parent 1a23000 commit 6bbd073

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

features/usermedia.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: <usermedia>
2+
description: >
3+
The `<usermedia>` HTML element represents a button that, upon activation, toggles camera or microphone streams.
4+
If needed, it may prompt the user to choose whether to grant the page access to the camera and microphone.
5+
spec: https://github.com/WICG/PEPC/blob/main/usermedia_element.md
6+
# Expected:
7+
# compat_features:
8+
# - api.HTMLUserMediaElement
9+
# - api.HTMLUserMediaElement.HTMLUserMediaElement
10+
# - api.HTMLUserMediaElement.stream
11+
# - api.HTMLUserMediaElement.setConstraints
12+
# - api.HTMLUserMediaElement.error
13+
# - api.HTMLUserMediaElement.autostart
14+
# - html.elements.usermedia
15+
# - html.elements.usermedia.autostart

features/usermedia.yml.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Generated from: usermedia.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support: {}

scripts/specs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ const defaultAllowlist: allowlistItem[] = [
232232
"https://wicg.github.io/shared-storage/",
233233
"Discontinued spec allowed for discouraged feature."
234234
],
235+
[
236+
"https://github.com/WICG/PEPC/blob/main/usermedia_element.md",
237+
"Replace with https://w3c.github.io/mediacapture-extensions/#the-usermedia-html-element when https://github.com/w3c/mediacapture-extensions/pull/168 merges."
238+
]
235239
];
236240

237241
function isOK(url: URL, allowlist: allowlistItem[] = defaultAllowlist) {

0 commit comments

Comments
 (0)