Skip to content

Commit 44194c0

Browse files
authored
Add MediaError to <video> (#2896)
This is the type of HTMLMediaElement's error property, and an orignal (or almost) part of the API. The message property was a later improvement, but still very Baseline by now.
1 parent 8077c64 commit 44194c0

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

features/video.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ compat_features:
6666
- api.HTMLVideoElement.videoHeight
6767
- api.HTMLVideoElement.videoWidth
6868
- api.HTMLVideoElement.width
69+
- api.MediaError
70+
- api.MediaError.code
71+
- api.MediaError.message
6972
- html.elements.video
7073
- html.elements.video.autoplay
7174
- html.elements.video.controls

features/video.yml.dist

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,20 @@ compat_features:
9797
- api.HTMLVideoElement.poster
9898
- html.elements.video.poster
9999

100+
# baseline: high
101+
# baseline_low_date: 2015-07-29
102+
# baseline_high_date: 2018-01-29
103+
# support:
104+
# chrome: "3"
105+
# chrome_android: "18"
106+
# edge: "12"
107+
# firefox: "4"
108+
# firefox_android: "4"
109+
# safari: "3.1"
110+
# safari_ios: "2"
111+
- api.MediaError
112+
- api.MediaError.code
113+
100114
# baseline: high
101115
# baseline_low_date: 2015-07-29
102116
# baseline_high_date: 2018-01-29
@@ -322,6 +336,19 @@ compat_features:
322336
# safari_ios: "10"
323337
- html.elements.video.crossorigin
324338

339+
# baseline: high
340+
# baseline_low_date: 2021-09-20
341+
# baseline_high_date: 2024-03-20
342+
# support:
343+
# chrome: "59"
344+
# chrome_android: "59"
345+
# edge: "79"
346+
# firefox: "52"
347+
# firefox_android: "52"
348+
# safari: "15"
349+
# safari_ios: "15"
350+
- api.MediaError.message
351+
325352
# baseline: false
326353
# support:
327354
# chrome: "3"

0 commit comments

Comments
 (0)