Intent to Implement and Ship: MediaStreamTrackEvent constructor

26 views
Skip to first unread message

Philip Jägenstedt

unread,
Sep 19, 2016, 4:02:39 PM9/19/16
to blink-dev

Contact emails

foo...@chromium.org


Spec

https://w3c.github.io/mediacapture-main/#mediastreamtrackevent


Summary

Expose the MediaStreamTrackEvent interface and constructor, so that new MediaStreamTrackEvent('type', { track: aMediaStreamTrack }) works.


Motivation

The MediaStreamTrackEvent interface currently has [NoInterfaceObject], which is why it showed up in Web features in 2 major browser, but not Chrome. The other two are Firefox and Edge. While WebKit has the IDL file it's not enabled in Safari.

The constructor isn't really useful, but event interfaces have them.

Interoperability and Compatibility Risk

Improves interop by bringing supporting engines from 2 to 3, and if MediaStream ships in Safari this will come along for the ride.


Compat risk is virtually none. There's little reason to use the constructor at all, and the only (7) results in HTTP Archive are from compiled dart code, which for some reason has a list of event interfaces in one place.


I added a test in web-platform-tests for this:

With the follow-up fix, it passes in Firefox 50 Aurora, but not 49 Beta. It fails in Edge 14, issue filed:

Ongoing technical constraints

None. There was an IDL compiler bug that I had to fix first, and if that is reverted, this constructor will need to be as well.



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

Yes.


OWP launch tracking bug

crbug.com/646837


Link to entry on the feature dashboard

https://www.chromestatus.com/features/5005114376978432


Requesting approval to ship?

Yes.

Chris Harrelson

unread,
Sep 19, 2016, 8:08:24 PM9/19/16
to Philip Jägenstedt, 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+unsubscribe@chromium.org.

TAMURA, Kent

unread,
Sep 19, 2016, 9:47:15 PM9/19/16
to Chris Harrelson, Philip Jägenstedt, blink-dev
LGTM2

--
TAMURA Kent
Software Engineer, Google


Rick Byers

unread,
Sep 22, 2016, 10:57:14 AM9/22/16
to TAMURA, Kent, Chris Harrelson, Philip Jägenstedt, blink-dev
LGTM3
Reply all
Reply to author
Forward
0 new messages