Skip to content

Commit

Permalink
Merge pull request #305 from youennf/fix-torch-capabilities
Browse files Browse the repository at this point in the history
Make torch capability a sequence<boolean> like other similar capabilities like echoCancellation
  • Loading branch information
riju committed Oct 10, 2023
2 parents 5ea2a91 + 0a36d7f commit 35734a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ This Section defines a new set of [[mediacapture-streams#constrainable-propertie
MediaSettingsRange tilt;
MediaSettingsRange zoom;

boolean torch;
sequence&lt;boolean> torch;
};
</pre>

Expand Down Expand Up @@ -531,7 +531,9 @@ This Section defines a new set of [[mediacapture-streams#constrainable-propertie
</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>
<dd>If the source cannot turn on <a>torch</a>, a single <code>false</code> is reported.
If the source cannot turn off <a>torch</a>, a single <code>true</code> is reported.
If the script can control the feature, the source reports a list with both <code>true</code> and <code>false</code> as possible values.</dd>
</dl>

## {{MediaTrackConstraintSet}} dictionary ## {#mediatrackconstraintset-section}
Expand Down

0 comments on commit 35734a5

Please sign in to comment.