whatwg / streams

Streams Standard
https://streams.spec.whatwg.org/
Other
1.35k stars 160 forks source link

srcObject #1160

Closed o-t-w closed 1 year ago

o-t-w commented 3 years ago

One of the examples of a use case for streams given in the spec is "Video effects: piping a readable video stream through a transform stream that applies effects in real time."

Does the following code work?

const video = document.createElement('video');
video.srcObject = stream;

I'm a bit hazy in general about how MediaStream and streams relate to each other.

MattiasBuelens commented 3 years ago

That's not a thing... yet. The MediaStreamTrack Insertable Media Processing using Streams proposal aims to make that work, so I suggest you follow their progress over at w3c/mediacapture-transform. 🙂