Bug 934425 - Add SinkId in webidl for HTMLMediaElement. r?bryce,smaug draft
authorAlex Chronopoulos <achronop@gmail.com>
Thu, 09 Aug 2018 17:14:28 +0300
changeset 827855 f79db264e82c5b7a931818296312515122a1873e
parent 827854 01c1dcdc7877bbdb5baddba3bd2822c1d3eddb39
child 827856 855b9882bf68ffdbf01a9a49396b14d0dfd9c0a1
push id118601
push userachronop@gmail.com
push dateThu, 09 Aug 2018 14:17:09 +0000
reviewersbryce, smaug
bugs934425
milestone63.0a1
Bug 934425 - Add SinkId in webidl for HTMLMediaElement. r?bryce,smaug MozReview-Commit-ID: 2fvxZDe5A94
dom/webidl/HTMLMediaElement.webidl
--- a/dom/webidl/HTMLMediaElement.webidl
+++ b/dom/webidl/HTMLMediaElement.webidl
@@ -215,16 +215,24 @@ partial interface HTMLMediaElement {
 partial interface HTMLMediaElement {
   [Pref="media.test.video-suspend"]
   void setVisible(boolean aVisible);
 
   [Pref="media.test.video-suspend"]
   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()
  * would be rejected with NotAllowedError.
  */
 partial interface HTMLMediaElement {
   [Pref="media.allowed-to-play.enabled"]
   readonly attribute boolean allowedToPlay;