web api interface
BrowserCaptureMediaStreamTrack
Limited availability
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.
Instance methods
clone()Experimental- : Returns an uncropped, unrestricted clone of the original
BrowserCaptureMediaStreamTrack.
- : Returns an uncropped, unrestricted clone of the original
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.
Examples
See Using the Element Capture and Region Capture APIs for in-context example code.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.