Web features explorer

captureStream() for <audio> and <video>

Limited availability
Tags: api Groups: HTML > Media elements

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. To learn more, see HTMLMediaElement: captureStream() method at MDN.

Compatibility