captureStream() for <audio> and <video>
Limited availability
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
- Chrome 62 Released on 2017-10-17
- Chrome Android 62 Released on 2017-10-24
- Edge 79 Released on 2020-01-15
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari ❌ Search for bugs Search for standards position
- Safari on iOS ❌ Search for bugs Search for standards position