Intent to Ship: HTMLMediaElement.srcObject for MediaStreams

49 views
Skip to first unread message

Guido Urdaneta

unread,
Apr 7, 2016, 9:47:13 AM4/7/16
to blink-dev

Contact emails

gui...@chromium.org, h...@chromium.org


Spec

http://w3c.github.io/mediacapture-main/#mediastreams-in-media-elements

https://html.spec.whatwg.org/multipage/embedded-content.html#media-elements


Tag review:https://github.com/w3ctag/spec-reviews/issues/57  


Summary

The HTML spec specifies that HTMLMediaElements have the srcObject attribute, which makes it possible to associate a MediaProvider with the media element. A MediaProvider can be a MediaStream, MediaSource or Blob.

This intent covers the addition of an srcObject attribute to HTMLMediaElement with support for the  MediaStream type. We start with MediaStream specifically because it is the only type currently supported by other major browsers, but the goal is to provide support for the other types in the future.

Recent updates to blink dependency rules make it easier to add support for the other types.

Link to “Intent to Implement” blink-dev discussion

https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/D20_5X-2nCk

Note: implementation has not landed yet. It is proceeding in https://codereview.chromium.org/1815033003/

Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes.


Interoperability and Compatibility Risk

The addition of the MediaStream-only srcObject attribute improves interoperability, as it makes Blink more compliant with the spec and more compatible with WebKit, Edge and Firefox, which already support the attribute. The lack of support for Blob and MediaSource does not introduce interoperability problems, as the other browsers do not support them either. Only Firefox has shown explicit signals in favor of supporting those types in the near future.


We do not anticipate any compatibility risk, as the existing mechanism to support similar functionality (URL.createObjectURL() together with the src attribute) will continue to be supported, so existing applications do not need to be rewritten.


OWP launch tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=595326


Link to entry on the feature dashboard

https://www.chromestatus.com/feature/5989005896187904


Requesting approval to ship?

Yes


Philip Jägenstedt

unread,
Apr 11, 2016, 11:36:04 AM4/11/16
to Guido Urdaneta, blink-dev
LGTM1

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

TAMURA, Kent

unread,
Apr 12, 2016, 5:42:27 AM4/12/16
to Philip Jägenstedt, Guido Urdaneta, blink-dev
LGTM2

--
TAMURA Kent
Software Engineer, Google


Jochen Eisinger

unread,
Apr 12, 2016, 5:46:35 AM4/12/16
to TAMURA, Kent, Philip Jägenstedt, Guido Urdaneta, blink-dev

lgtm3

Reply all
Reply to author
Forward
0 new messages