api.HTMLMediaElement.captureStream

Spec

MDN URL

Status

On the standards track: Yes

Is Experimental: No

Is Deprecated: No

Browser Support

In Chrome version 62 on 2017-10-17

In Chrome Android version 62 on 2017-10-24

In Edge version 79 on 2020-01-15

In Firefox version 149 on 2026-03-24 Note: From Firefox 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. 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. 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. 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).

In Firefox for Android version 149 on 2026-03-24 Note: 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. 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. 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. 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).

Not in Internet Explorer

In Quest Browser version 5.0 on 2018-07-01

In Opera version 49 on 2017-11-08

In Opera Android version 46 on 2018-05-14

Not in Safari

Not in Safari on iOS

In Samsung Internet version 8.0 on 2018-07-18

In WebView Android version 62 on 2017-10-24

Not in WebView on iOS