← Back to release summary

HTMLMediaElement.srcObject attribute

Category
Realtime / Communication
Type
New or changed feature
Status
Enabled by default (Chrome 52)
Intent stage
None

Summary

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.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/srcObject

View on chromestatus.com