Skip to content

Commit

Permalink
Add pan and tilt constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 committed Jun 12, 2017
1 parent 22c7755 commit c5d8aa7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions implementation-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ Feature/Platform | Android | Linux/ChromeOS | Windows | Mac |
└ exposureMode | ✓ | ✓ | M60 [1] | |
└ focusMode | ✓ | ✓ | M60 [1] | |
└ iso | ✓ | | | |
└ pan | | | | |
└ pointsOfInterest | ✓ | | | |
└ saturation | | ✓ | M60 [1] | |
└ sharpness | | ✓ | M60 [1] | |
└ tilt | | | | |
└ whiteBalanceMode | ✓ | ✓ | M60 [1] | |
└ zoom | ✓ | ✓ | M60 [1] | |

Expand Down
36 changes: 36 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,10 @@ This Section defines a number of new set of <a>Constrainable Properties</a> for

boolean brightness = true;
boolean contrast = true;
boolean pan = true;
boolean saturation = true;
boolean sharpness = true;
boolean tilt = true;
boolean zoom = true;
boolean torch = true;
};
Expand Down Expand Up @@ -373,12 +375,18 @@ This Section defines a number of new set of <a>Constrainable Properties</a> for
<dt><dfn dict-member for="MediaTrackSupportedConstraints"><code>contrast</code></dfn></dt>
<dd>Whether <a>contrast</a> constraining is recognized.</dd>

<dt><dfn dict-member for="MediaTrackSupportedConstraints"><code>pan</code></dfn></dt>
<dd>Whether <a>pan</a> constraining is recognized.</dd>

<dt><dfn dict-member for="MediaTrackSupportedConstraints"><code>saturation</code></dfn></dt>
<dd>Whether <a>saturation</a> constraining is recognized.</dd>

<dt><dfn dict-member for="MediaTrackSupportedConstraints"><code>sharpness</code></dfn></dt>
<dd>Whether <a>sharpness</a> constraining is recognized.</dd>

<dt><dfn dict-member for="MediaTrackSupportedConstraints"><code>tilt</code></dfn></dt>
<dd>Whether <a>tilt</a> constraining is recognized.</dd>

<dt><dfn dict-member for="MediaTrackSupportedConstraints"><code>zoom</code></dfn></dt>
<dd>Whether configuration of the <a>zoom</a> level is recognized.</dd>

Expand All @@ -405,6 +413,8 @@ This Section defines a number of new set of <a>Constrainable Properties</a> for
MediaSettingsRange saturation;
MediaSettingsRange sharpness;

MediaSettingsRange pan;
MediaSettingsRange tilt;
MediaSettingsRange zoom;

boolean torch;
Expand Down Expand Up @@ -438,12 +448,18 @@ This Section defines a number of new set of <a>Constrainable Properties</a> for
<dt><dfn dict-member for="MediaTrackCapabilities"><code>contrast</code></dfn></dt>
<dd>This reflects the supported range of <a>contrast</a>. Values are numeric. Increasing values indicate increasing contrast.</dd>

<dt><dfn dict-member for="MediaTrackCapabilities"><code>pan</code></dfn></dt>
<dd>This reflects the <a>pan</a> value range supported by the UA.</dd>

<dt><dfn dict-member for="MediaTrackCapabilities"><code>saturation</code></dfn></dt>
<dd>This reflects the permitted range of <a>saturation</a> setting. Values are numeric. Increasing values indicate increasing saturation.</dd>

<dt><dfn dict-member for="MediaTrackCapabilities"><code>sharpness</code></dfn></dt>
<dd>This reflects the permitted <a>sharpness</a> range of the camera. Values are numeric. Increasing values indicate increasing sharpness, and the minimum value always implies no sharpness enhancement or processing.</dd>

<dt><dfn dict-member for="MediaTrackCapabilities"><code>tilt</code></dfn></dt>
<dd>This reflects the <a>tilt</a> value range supported by the UA.</dd>

<dt><dfn dict-member for="MediaTrackCapabilities"><code>zoom</code></dfn></dt>
<dd>This reflects the <a>zoom</a> value range supported by the UA.</dd>

Expand Down Expand Up @@ -475,6 +491,8 @@ This Section defines a number of new set of <a>Constrainable Properties</a> for
ConstrainDouble saturation;
ConstrainDouble sharpness;

ConstrainDouble pan;
ConstrainDouble tilt;
ConstrainDouble zoom;

ConstrainBoolean torch;
Expand Down Expand Up @@ -511,12 +529,18 @@ This Section defines a number of new set of <a>Constrainable Properties</a> for
<dt><dfn dict-member for="MediaTrackConstraintSet"><code>contrast</code></dfn></dt>
<dd>See <a>contrast</a> constrainable property.</dd>

<dt><dfn dict-member for="MediaTrackConstraintSet"><code>pan</code></dfn></dt>
<dd>See <a>pan</a> constrainable property.</dd>

<dt><dfn dict-member for="MediaTrackConstraintSet"><code>saturation</code></dfn></dt>
<dd>See <a>saturation</a> constrainable property.</dd>

<dt><dfn dict-member for="MediaTrackConstraintSet"><code>sharpness</code></dfn></dt>
<dd>See <a>sharpness</a> constrainable property.</dd>

<dt><dfn dict-member for="MediaTrackConstraintSet"><code>tilt</code></dfn></dt>
<dd>See <a>tilt</a> constrainable property.</dd>

<dt><dfn dict-member for="MediaTrackConstraintSet"><code>zoom</code></dfn></dt>
<dd>See <a>zoom</a> constrainable property.</dd>

Expand Down Expand Up @@ -544,6 +568,8 @@ When the {{getSettings()}} method is invoked on a video stream track, the user a
double saturation;
double sharpness;

double pan;
double tilt;
double zoom;

boolean torch;
Expand Down Expand Up @@ -580,12 +606,18 @@ When the {{getSettings()}} method is invoked on a video stream track, the user a
<dt><dfn dict-member for="MediaTrackSettings"><code>contrast</code></dfn></dt>
<dd>This reflects the current <a>contrast</a> setting of the camera.</dd>

<dt><dfn dict-member for="MediaTrackSettings"><code>pan</code></dfn></dt>
<dd>This reflects the current <a>pan</a> setting of the camera.</dd>

<dt><dfn dict-member for="MediaTrackSettings"><code>saturation</code></dfn></dt>
<dd>This reflects the current <a>saturation</a> setting of the camera.</dd>

<dt><dfn dict-member for="MediaTrackSettings"><code>sharpness</code></dfn></dt>
<dd>This reflects the current <a>sharpness</a> setting of the camera.</dd>

<dt><dfn dict-member for="MediaTrackSettings"><code>tilt</code></dfn></dt>
<dd>This reflects the current <a>tilt</a> setting of the camera.</dd>

<dt><dfn dict-member for="MediaTrackSettings"><code>zoom</code></dfn></dt>
<dd>This reflects the current <a>zoom</a> setting of the camera.</dd>

Expand Down Expand Up @@ -670,6 +702,10 @@ When the {{getSettings()}} method is invoked on a video stream track, the user a
</div>
</li>

<li><dfn>Pan</dfn> is a numeric camera setting that controls the pan of the camera. The setting represents pan in arc seconds, which are 1/3600th of a degree. Values are in the range from –180*3600 arc seconds to +180*3600 arc seconds. Positive values pan the camera clockwise as viewed from above, and negative values pan the camera counter clockwise as viewed from above.</li>

<li><dfn>Tilt</dfn> is a numeric camera setting that controls the tilt of the camera. The setting represents tilt in arc seconds, which are 1/3600th of a degree. Values are in the range from –180*3600 arc seconds to +180*3600 arc seconds. Positive values tilt the camera upward when viewed from the front, and negative values tilt the camera downward as viewed from the front.</li>

<li><dfn>Zoom</dfn> is a numeric camera setting that controls the focal length of the lens. The setting usually represents a ratio, e.g. 4 is a zoom ratio of 4:1. The minimum value is usually 1, to represent a 1:1 ratio (i.e. no zoom).</li>

<li><dfn>Fill light mode</dfn> describes the flash setting of the capture device (e.g. |auto|, |off|, |on|). <dfn>Torch</dfn> describes the setting of the source's fill light as continuously connected, staying on as long as {{track}} is active.</li>
Expand Down

0 comments on commit c5d8aa7

Please sign in to comment.