Add constructors for MediaStream

This commit is contained in:
Manish Goregaokar 2019-05-07 15:59:54 -07:00
parent 72701d96c4
commit b4ddf6837f
2 changed files with 28 additions and 5 deletions

View file

@ -4,11 +4,11 @@
// https://w3c.github.io/mediacapture-main/#dom-mediastream
// [Exposed=Window,
// Constructor,
// Constructor(MediaStream stream),
// Constructor(sequence<MediaStreamTrack> tracks)]
[Exposed=Window, Pref="dom.webrtc.enabled"]
[Exposed=Window,
Constructor,
Constructor(MediaStream stream),
Constructor(sequence<MediaStreamTrack> tracks),
Pref="dom.webrtc.enabled"]
interface MediaStream : EventTarget {
// readonly attribute DOMString id;
sequence<MediaStreamTrack> getAudioTracks();