Web platform 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.

Browser support

  • Chrome 62 Released on 2017-10-17
  • Chrome Android 62 Released on 2017-10-24
  • Edge 79 Released on 2020-01-15
  • Firefox
  • Firefox for Android
  • Safari
  • Safari on iOS