“Media Capture from DOM Elements” document by W3C defines captureStream() method that allows the capture of a <video>/<audio> element in the form of a MediaStream. We want to implement the necessary Blink and Chromium sections that would create this stream by accessing the <video>/<audio> output according to the given play back constraints.
Demo
Documentation
Specification
Status in Chromium
Blink>MediaStream>CaptureFromElement
Enabled by default (tracking bug) in:
- Chrome for desktop release 62
- Chrome for Android release 62
- Android WebView release 62
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
- Shipped/Shipping
- No signal
- No signal
- Positive
Owners
Last updated on 2020-11-09
Comments
Gecko has a prefixed implementation. Probably landed this as part of https://bugzilla.mozilla.org/show_bug.cgi?id=664918.