Element capture
Limited availability
The restrictTo()
method on screen capture media tracks limits capture to a specific element, excluding content which might occlude the element itself, such as video conferencing controls.
Learning resources on MDN
- BrowserCaptureMediaStreamTrack: restrictTo() method
- RestrictionTarget
- RestrictionTarget: fromElement() static method
Browser support
- Chrome 132 Released on 2025-01-14
- Chrome Android ❌
- Edge 132 Released on 2025-01-17
- Firefox ❌ Vendor position : negative
- Firefox for Android ❌ Vendor position : negative
- Safari ❌
- Safari on iOS ❌
Specifications
- Element Capture, from Screen Capture Community Group (W3C).
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature