Skip to content

Commit dc59ace

Browse files
autonomefoolipddbeck
authored
Add Capture stream (#1726)
Co-authored-by: Philip Jägenstedt <[email protected]> Co-authored-by: Daniel D. Beck <[email protected]>
1 parent 4b0cc98 commit dc59ace

5 files changed

+44
-22
lines changed
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: captureStream() for <audio> and <video>
2+
description: The `captureStream()` method for `<audio>` and `<video>` elements returns a `MediaStream` for the media element's content. You can use this to record media or send it elsewhere, such as a canvas or WebRTC connection.
3+
spec: https://w3c.github.io/mediacapture-fromelement/#html-media-element-media-capture-extensions
4+
group: media-elements
5+
compat_features:
6+
- api.HTMLMediaElement.captureStream
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Generated from: capture-stream-audio-video.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "62"
8+
chrome_android: "62"
9+
edge: "79"
10+
compat_features:
11+
- api.HTMLMediaElement.captureStream

features/capture-stream-canvas.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: captureStream() for <canvas>
2+
description: The `captureStream()` method for `<canvas>` elements returns a `MediaStream` which includes a `CanvasCaptureMediaStreamTrack` representing real-time video of the canvas image. You can use this to record the canvas, or send it elsewhere, such as another canvas or WebRTC connection.
3+
# TODO: Firefox implements `CanvasCaptureMediaStream` as an equivalent to `CanvasCaptureMediaStreamTrack`.
4+
#
5+
# Add a note when https://github.com/web-platform-dx/web-features/issues/915 is resolved.
6+
#
7+
# See also: https://bugzil.la/1231131
8+
spec: https://w3c.github.io/mediacapture-fromelement/#html-canvas-element-media-capture-extensions
9+
group: canvas
10+
status:
11+
compute_from: api.HTMLCanvasElement.captureStream
12+
compat_features:
13+
- api.CanvasCaptureMediaStreamTrack
14+
- api.CanvasCaptureMediaStreamTrack.canvas
15+
- api.CanvasCaptureMediaStreamTrack.requestFrame
16+
- api.HTMLCanvasElement.captureStream

features/draft/spec/mediacapture-fromelement.yml.dist renamed to features/capture-stream-canvas.yml.dist

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
# Generated from: mediacapture-fromelement.yml
1+
# Generated from: capture-stream-canvas.yml
22
# Do not edit this file by hand. Edit the source file instead!
33

44
status:
5-
baseline: false
5+
baseline: high
6+
baseline_low_date: 2020-01-15
7+
baseline_high_date: 2022-07-15
68
support:
7-
chrome: "62"
8-
chrome_android: "62"
9+
chrome: "51"
10+
chrome_android: "51"
911
edge: "79"
12+
firefox: "43"
13+
firefox_android: "43"
14+
safari: "11"
15+
safari_ios: "11"
1016
compat_features:
17+
# ⬇️ Same status as overall feature ⬇️
1118
# baseline: high
1219
# baseline_low_date: 2020-01-15
1320
# baseline_high_date: 2022-07-15
@@ -31,11 +38,3 @@ compat_features:
3138
- api.CanvasCaptureMediaStreamTrack
3239
- api.CanvasCaptureMediaStreamTrack.canvas
3340
- api.CanvasCaptureMediaStreamTrack.requestFrame
34-
35-
# ⬇️ Same status as overall feature ⬇️
36-
# baseline: false
37-
# support:
38-
# chrome: "62"
39-
# chrome_android: "62"
40-
# edge: "79"
41-
- api.HTMLMediaElement.captureStream

features/draft/spec/mediacapture-fromelement.yml

-10
This file was deleted.

0 commit comments

Comments
 (0)