This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The BrowserCaptureMediaStreamTrack interface of the Screen Capture API represents a single video track. It extends the MediaStreamTrack class with methods to limit the part of a self-capture stream (for example, a user's screen or window) that is captured.
clone() Experimental
Returns an uncropped, unrestricted clone of the original BrowserCaptureMediaStreamTrack.
cropTo() Experimental
Crops a self-capture stream to the area in which a specified DOM element is rendered.
restrictTo() Experimental
Restricts a self-capture stream to a specific DOM element.
See Using the Element Capture and Region Capture APIs for in-context example code.
| Specification |
|---|
| Region Capture> # browser-capture-media-stream-track> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
BrowserCaptureMediaStreamTrack |
104 | 104 | No | 90 | No | No | No | No | No | No | No | No |
clone |
104 | 104 | No | 90 | No | No | No | No | No | No | No | No |
cropTo |
104 | 104 | No | 90 | No | No | No | No | No | No | No | No |
restrictTo |
132 | 132 | No | 117 | No | No | No | No | No | No | No | No |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/BrowserCaptureMediaStreamTrack