Bug 934425 - Add SinkId in webidl for HTMLMediaElement. r=smaug
authorAlex Chronopoulos <achronop@gmail.com>
Fri, 12 Oct 2018 08:44:55 +0000
changeset 489186 8aef0f43b2d891668022474f0af701980de6e39d
parent 489185 87921c31f0b70062ce1fa0bb3464107dd4a8370d
child 489187 55c832b1f2fecec90fb4afef27669ab971fc2fab
push id246
push userfmarier@mozilla.com
push dateSat, 13 Oct 2018 00:15:40 +0000
reviewerssmaug
bugs934425
milestone64.0a1
Bug 934425 - Add SinkId in webidl for HTMLMediaElement. r=smaug Differential Revision: https://phabricator.services.mozilla.com/D5873
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;