Bug 912342 - Add MediaStreamTrack.applyConstraints webidl. r=smaug
authorJan-Ivar Bruaroey <jib@mozilla.com>
Wed, 16 Sep 2015 23:09:28 -0400
changeset 296082 7b3ef1ea74f18b61d00cc113e80d50a751987381
parent 296081 7bd1fcbc04d11f427d1fe51032034701c1088113
child 296083 7e6cf02b174c0e25a9bcf571e383cebbb6c9c7eb
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs912342
milestone43.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 912342 - Add MediaStreamTrack.applyConstraints webidl. r=smaug
dom/webidl/MediaStreamTrack.webidl
--- a/dom/webidl/MediaStreamTrack.webidl
+++ b/dom/webidl/MediaStreamTrack.webidl
@@ -50,29 +50,31 @@ dictionary MediaTrackConstraintSet {
     boolean scrollWithPage;
     ConstrainDOMString deviceId;
 };
 
 dictionary MediaTrackConstraints : MediaTrackConstraintSet {
     sequence<MediaTrackConstraintSet> advanced;
 };
 
-interface MediaStreamTrack {
+[Exposed=Window]
+interface MediaStreamTrack : EventTarget {
     readonly    attribute DOMString             kind;
     readonly    attribute DOMString             id;
     readonly    attribute DOMString             label;
                 attribute boolean               enabled;
-//    readonly    attribute MediaStreamTrackState readyState;
-//    readonly    attribute SourceTypeEnum        sourceType;
-//    readonly    attribute DOMString             sourceId;
-//                attribute EventHandler          onstarted;
-//                attribute EventHandler          onmute;
-//                attribute EventHandler          onunmute;
+//  readonly    attribute boolean               muted;
+//              attribute EventHandler          onmute;
+//              attribute EventHandler          onunmute;
+//  readonly    attribute boolean               _readonly;
+//  readonly    attribute boolean               remote;
+//  readonly    attribute MediaStreamTrackState readyState;
 //                attribute EventHandler          onended;
-//    any                    getConstraint (DOMString constraintName, optional boolean mandatory = false);
-//    void                   setConstraint (DOMString constraintName, any constraintValue, optional boolean mandatory = false);
-//    MediaTrackConstraints? constraints ();
-//    void                   applyConstraints (MediaTrackConstraints constraints);
-//    void                   prependConstraint (DOMString constraintName, any constraintValue);
-//    void                   appendConstraint (DOMString constraintName, any constraintValue);
-//                attribute EventHandler          onoverconstrained;
+//  MediaStreamTrack       clone ();
     void                   stop ();
+//  MediaTrackCapabilities getCapabilities ();
+//  MediaTrackConstraints  getConstraints ();
+//  MediaTrackSettings     getSettings ();
+
+    [Throws]
+    Promise<void>          applyConstraints (optional MediaTrackConstraints constraints);
+//              attribute EventHandler          onoverconstrained;
 };