The srcObject attribute allows associating a MediaStream to a media element using a simple assignment. Previously, achieving this required first obtaining a URL associated to the MediaStream, and then associating this URL to the media element.
Documentation
Specification
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 52
- Chrome for Android release 52
- Android WebView release 52
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
Owners
Last updated on 2020-11-09
Comments
The spec specifies that it must be possible assign MediaStream, MediaSource or Blob objects to the srcObject attribute. However, Blink will initially support only MediaStream objects. All other browsers provide support only for MediaStream as well.