Skip to content

Commit

Permalink
Update ConstrainLong to ConstrainULong everywhere (#2995)
Browse files Browse the repository at this point in the history
It's already a redirect. Also one last instance of LongRange.
  • Loading branch information
foolip authored Mar 10, 2021
1 parent 4b40815 commit 625907d
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div>{{APIRef("Media Capture and Streams")}}</div>

<p>The {{domxref("MediaTrackConstraints")}} dictionary's
<code><strong>channelCount</strong></code> property is a {{domxref("ConstrainLong")}}
<code><strong>channelCount</strong></code> property is a {{domxref("ConstrainULong")}}
describing the requested or mandatory constraints placed upon the value of the
{{domxref("MediaTrackSettings.channelCount", "channelCount")}} constrainable property.
</p>
Expand All @@ -38,7 +38,7 @@ <h3 id="Value">Value</h3>
<p>If this value is a number, the user agent will attempt to obtain media whose channel
count is as close as possible to this number given the capabilities of the hardware and
the other constraints specified. Otherwise, the value of this
{{domxref("ConstrainLong")}} will guide the user agent in its efforts to provide an
{{domxref("ConstrainULong")}} will guide the user agent in its efforts to provide an
exact match to the required channel count (if <code>exact</code> is specified or both
<code>min</code> and <code>max</code> are provided and have the same value) or to a
best-possible value.</p>
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/mediatrackconstraints/height/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div>{{APIRef("Media Capture and Streams")}}</div>

<p>The {{domxref("MediaTrackConstraints")}} dictionary's
<code><strong>height</strong></code> property is a {{domxref("ConstrainLong")}}
<code><strong>height</strong></code> property is a {{domxref("ConstrainULong")}}
describing the requested or mandatory constraints placed upon the value of the
{{domxref("MediaTrackSettings.height", "height")}} constrainable property.</p>

Expand All @@ -36,7 +36,7 @@ <h3 id="Value">Value</h3>

<p>If this value is a number, the user agent will attempt to obtain media whose height is
as close as possible to this number given the capabilities of the hardware and the other
constraints specified. Otherwise, the value of this {{domxref("ConstrainLong")}} will
constraints specified. Otherwise, the value of this {{domxref("ConstrainULong")}} will
guide the user agent in its efforts to provide an exact match to the required height (if
<code>exact</code> is specified or both <code>min</code> and <code>max</code> are
provided and have the same value) or to a best-possible value.</p>
Expand Down
10 changes: 5 additions & 5 deletions files/en-us/web/api/mediatrackconstraints/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ <h3 id="Properties_of_audio_tracks">Properties of audio tracks</h3>
<dt>{{domxref("MediaTrackConstraints.autoGainControl", "autoGainControl")}}</dt>
<dd>A {{domxref("ConstrainBoolean")}} object which specifies whether automatic gain control is preferred and/or required.</dd>
<dt>{{domxref("MediaTrackConstraints.channelCount", "channelCount")}}</dt>
<dd>A {{domxref("ConstrainLong")}} specifying the channel count or range of channel counts which are acceptable and/or required.</dd>
<dd>A {{domxref("ConstrainULong")}} specifying the channel count or range of channel counts which are acceptable and/or required.</dd>
<dt>{{domxref("MediaTrackConstraints.echoCancellation", "echoCancellation")}}</dt>
<dd>A {{domxref("ConstrainBoolean")}} object specifying whether or not echo cancellation is preferred and/or required.</dd>
<dt>{{domxref("MediaTrackConstraints.latency", "latency")}}</dt>
<dd>A {{domxref("ConstrainDouble")}} specifying the latency or range of latencies which are acceptable and/or required.</dd>
<dt>{{domxref("MediaTrackConstraints.noiseSuppression", "noiseSuppression")}}</dt>
<dd>A {{domxref("ConstrainBoolean")}} which specifies whether noise suppression is preferred and/or required.</dd>
<dt>{{domxref("MediaTrackConstraints.sampleRate", "sampleRate")}}</dt>
<dd>A {{domxref("ConstrainLong")}} specifying the sample rate or range of sample rates which are acceptable and/or required.</dd>
<dd>A {{domxref("ConstrainULong")}} specifying the sample rate or range of sample rates which are acceptable and/or required.</dd>
<dt>{{domxref("MediaTrackConstraints.sampleSize", "sampleSize")}}</dt>
<dd>A {{domxref("ConstrainLong")}} specifying the sample size or range of sample sizes which are acceptable and/or required.</dd>
<dd>A {{domxref("ConstrainULong")}} specifying the sample size or range of sample sizes which are acceptable and/or required.</dd>
<dt>{{domxref("MediaTrackConstraints.volume", "volume")}}</dt>
<dd>A {{domxref("ConstrainDouble")}} specifying the volume or range of volumes which are acceptable and/or required.</dd>
</dl>
Expand Down Expand Up @@ -102,9 +102,9 @@ <h3 id="Properties_of_video_tracks">Properties of video tracks</h3>
<dt>{{domxref("MediaTrackConstraints.frameRate", "frameRate")}}</dt>
<dd>A {{domxref("ConstrainDouble")}} specifying the frame rate or range of frame rates which are acceptable and/or required.</dd>
<dt>{{domxref("MediaTrackConstraints.height", "height")}}</dt>
<dd>A {{domxref("ConstrainLong")}} specifying the video height or range of heights which are acceptable and/or required.</dd>
<dd>A {{domxref("ConstrainULong")}} specifying the video height or range of heights which are acceptable and/or required.</dd>
<dt>{{domxref("MediaTrackConstraints.width", "width")}}</dt>
<dd>A {{domxref("ConstrainLong")}} specifying the video width or range of widths which are acceptable and/or required.</dd>
<dd>A {{domxref("ConstrainULong")}} specifying the video width or range of widths which are acceptable and/or required.</dd>
<dt>{{domxref("MediaTrackConstraints.resizeMode", "resizeMode")}}</dt>
<dd>A {{domxref("ConstrainDOMString")}} object specifying a mode or an array of modes the UA can use to derive the resolution of a video track. Allowed values are <code>none</code> and <code>crop-and-scale</code>. <code>none</code> means that the user agent uses the resolution provided by the camera, its driver or the OS. <code>crop-and-scale</code> means that the user agent can use cropping and downscaling on the camera output  in order to satisfy other constraints that affect the resolution.</dd>
</dl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div>{{APIRef("Media Capture and Streams")}}</div>

<p>The {{domxref("MediaTrackConstraints")}} dictionary's
<code><strong>sampleRate</strong></code> property is a {{domxref("ConstrainLong")}}
<code><strong>sampleRate</strong></code> property is a {{domxref("ConstrainULong")}}
describing the requested or mandatory constraints placed upon the value of the
{{domxref("MediaTrackSettings.sampleRate", "sampleRate")}} constrainable property.</p>

Expand All @@ -38,7 +38,7 @@ <h3 id="Value">Value</h3>
<p>If this value is a number, the user agent will attempt to obtain media whose sample
rate is as close as possible to this number given the capabilities of the hardware and
the other constraints specified. Otherwise, the value of this
{{domxref("ConstrainLong")}} will guide the user agent in its efforts to provide an
{{domxref("ConstrainULong")}} will guide the user agent in its efforts to provide an
exact match to the required sample rate (if <code>exact</code> is specified or both
<code>min</code> and <code>max</code> are provided and have the same value) or to a
best-possible value.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div>{{APIRef("Media Capture and Streams")}}</div>

<p>The {{domxref("MediaTrackConstraints")}} dictionary's
<code><strong>sampleSize</strong></code> property is a {{domxref("ConstrainLong")}}
<code><strong>sampleSize</strong></code> property is a {{domxref("ConstrainULong")}}
describing the requested or mandatory constraints placed upon the value of the
{{domxref("MediaTrackSettings.sampleSize", "sampleSize")}} constrainable property.</p>

Expand All @@ -37,7 +37,7 @@ <h3 id="Value">Value</h3>
<p>If this value is a number, the user agent will attempt to obtain media whose sample
size (in bits per linear sample) is as close as possible to this number given the
capabilities of the hardware and the other constraints specified. Otherwise, the value
of this {{domxref("ConstrainLong")}} will guide the user agent in its efforts to provide
of this {{domxref("ConstrainULong")}} will guide the user agent in its efforts to provide
an exact match to the required sample size (if <code>exact</code> is specified or both
<code>min</code> and <code>max</code> are provided and have the same value) or to a
best-possible value.</p>
Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/mediatrackconstraints/width/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div>{{APIRef("Media Capture and Streams")}}</div>

<p>The {{domxref("MediaTrackConstraints")}} dictionary's
<code><strong>width</strong></code> property is a {{domxref("ConstrainLong")}}
<code><strong>width</strong></code> property is a {{domxref("ConstrainULong")}}
describing the requested or mandatory constraints placed upon the value of the
{{domxref("MediaTrackSettings.width", "width")}} constrainable property.</p>

Expand All @@ -36,7 +36,7 @@ <h3 id="Value">Value</h3>

<p>If this value is a number, the user agent will attempt to obtain media whose width is
as close as possible to this number given the capabilities of the hardware and the other
constraints specified. Otherwise, the value of this {{domxref("ConstrainLong")}} will
constraints specified. Otherwise, the value of this {{domxref("ConstrainULong")}} will
guide the user agent in its efforts to provide an exact match to the required width (if
<code>exact</code> is specified or both <code>min</code> and <code>max</code> are
provided and have the same value) or to a best-possible value.</p>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/ulongrange/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
- Constraints
- Dictionary
- Interface
- LongRange
- Media
- Media Capture and Streams API
- Media Streams API
- Reference
- ULongRange
- WebRTC
---
<div>{{APIRef("Media Capture and Streams")}}</div>
Expand Down

0 comments on commit 625907d

Please sign in to comment.