How we built it

HTMLMediaElement.srcObject attribute

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.


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.



Established standard

Status in Chromium

Enabled by default (launch bug) in:

  • Chrome for desktop release 52
  • Chrome for Android release 52
  • Android WebView release 52
  • Opera release 39
  • Opera for Android release 39

Consensus & Standardization


Last updated on 2016-07-28