captureStream() for <audio> and <video>
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.