Skip to content

Commit

Permalink
Clarify pan/tilt/zoom capabilities (w3c#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
eehakkin committed Aug 19, 2020
1 parent a8fc1c5 commit 459844e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,10 @@ This Section defines a number of new set of <a>Constrainable Properties</a> for
<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>
<dd>This reflects the <a>pan</a> value range supported by the UA and by the track.

If the track has been created without <a>requesting permission to use</a> (as defined in [[!permissions]]) a PermissionDescriptor with its name member set to {{PermissionName/camera}} and its {{CameraDevicePermissionDescriptor/panTiltZoom}} member set to true or if that permission request is denied, the track does not support <a>pan</a>.
In that case the UA MUST NOT expose the <a>pan</a> value range.</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>
Expand All @@ -505,10 +508,16 @@ This Section defines a number of new set of <a>Constrainable Properties</a> for
<dd>This reflects the <a>focus distance</a> value range supported by the UA.</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>
<dd>This reflects the <a>tilt</a> value range supported by the UA and by the track.

If the track has been created without <a>requesting permission to use</a> (as defined in [[!permissions]]) a PermissionDescriptor with its name member set to {{PermissionName/camera}} and its {{CameraDevicePermissionDescriptor/panTiltZoom}} member set to true or if that permission request is denied, the track does not support <a>tilt</a>.
In that case the UA MUST NOT expose the <a>tilt</a> value range.</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>
<dd>This reflects the <a>zoom</a> value range supported by the UA by the track.

If the track has been created without <a>requesting permission to use</a> (as defined in [[!permissions]]) a PermissionDescriptor with its name member set to {{PermissionName/camera}} and its {{CameraDevicePermissionDescriptor/panTiltZoom}} member set to true or if that permission request is denied, the track does not support <a>zoom</a>.
In that case the UA MUST NOT expose the <a>zoom</a> value range.</dd>

<dt><dfn dict-member for="MediaTrackCapabilities"><code>torch</code></dfn></dt>
<dd>A boolean indicating whether camera supports <a>torch</a> mode- on meaning supported.</dd>
Expand Down

0 comments on commit 459844e

Please sign in to comment.