Limited DOM API
api.HTMLMediaElement.captureStream
Granular MDN Browser Compat Data support history across 10 tracked browsers.
Specification Area
DOM API
Standard track
First Core Launch
Chrome 62
2017-10-17
Core-3 Stability
Limbo (3,327d (9.1y))
Last: Firefox (2026-03-24)
Baseline Feature
Limited / Unmapped
captureStream() for <audio> and <video>
Browser Support Timeline
Notes (8)
Firefox: From Firefox 51, if the source changes from aMediaStream after capture starts, the captured stream data cannot be updated until you switch the source back to a MediaStream.Firefox: From Firefox 51, if mozCaptureMediaStream() is called on a media element with a MediaStream source, the returned object only contains tracks while the element is playing a MediaStream.Firefox: From Firefox 51, if mozCaptureMediaStream() is called on a media element with no source media, its compatibility mode is be based on the first source that's added; and the stream will only work with that kind of stream from then on.Firefox: Before Firefox 51, mozCaptureMediaStream() could not be used on a media element whose source is itself a MediaStream (such as a <video> element presenting a stream being received over an RTCPeerConnection).FF And: From Firefox for Android 51, if the source changes from a MediaStream after capture starts, the captured stream data cannot be updated until you switch the source back to a MediaStream.FF And: From Firefox for Android 51, if mozCaptureMediaStream() is called on a media element with a MediaStream source, the returned object only contains tracks while the element is playing a MediaStream.FF And: From Firefox for Android 51, if mozCaptureMediaStream() is called on a media element with no source media, its compatibility mode is be based on the first source that's added; and the stream will only work with that kind of stream from then on.FF And: Before Firefox for Android 51, mozCaptureMediaStream() could not be used on a media element whose source is itself a MediaStream (such as a <video> element presenting a stream being received over an RTCPeerConnection).Full Browser Compatibility Table
| Browser | Type | Version | Release Date | Status / Caveats |
|---|---|---|---|---|
| Chrome | desktop | 62 | 2017-10-17 | Supported |
| Firefox | desktop | 149 | 2026-03-24 | Supported |
| Safari | desktop | — | — | — |
| Edge | desktop | 79 | 2020-01-15 | Supported |
| Chrome Android | mobile | 62 | 2017-10-24 | Supported |
| Firefox for Android | mobile | 149 | 2026-03-24 | Supported |
| Safari on iOS | mobile | — | — | — |
| WebView Android | mobile | 62 | 2017-10-24 | Supported |
| WebView on iOS | mobile | — | — | — |
| Samsung Browser | mobile | 8.0 | 2018-07-18 | Supported |
| Opera | desktop | 49 | 2017-11-08 | Supported |
| Opera Android | mobile | 46 | 2018-05-14 | Supported |
| Deno | server | — | — | — |
| Node.js | server | — | — | — |
| Bun | server | — | — | — |
| Quest Browser | xr | 5.0 | 2018-07-01 | Supported |
| Internet Explorer | desktop | — | — | — |