Bug 934425 - Add SinkId in webidl for HTMLMediaElement. r=smaug
authorAlex Chronopoulos <achronop@gmail.com>
Fri, 12 Oct 2018 08:44:55 +0000
changeset 499290 8aef0f43b2d891668022474f0af701980de6e39d
parent 499289 87921c31f0b70062ce1fa0bb3464107dd4a8370d
child 499291 55c832b1f2fecec90fb4afef27669ab971fc2fab
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs934425
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;