Bug 934425 - Add SinkId in webidl for HTMLMediaElement. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D5873

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alex Chronopoulos 2018-10-12 08:44:55 +00:00
parent 6e1c6f8946
commit 79f5e13243

View File

@ -220,6 +220,14 @@ partial interface HTMLMediaElement {
boolean hasSuspendTaint();
};
/* Audio Output Devices API */
partial interface HTMLMediaElement {
[Pref="media.setsinkid.enabled"]
readonly attribute DOMString sinkId;
[Throws, Pref="media.setsinkid.enabled"]
Promise<void> setSinkId(DOMString sinkId);
};
/*
* API that exposes whether a call to HTMLMediaElement.play() would be
* blocked by autoplay policies; whether the promise returned by play()