Skip to content

Commit c4985c1

Browse files
committed
Add MediaTrackConstraintSet.{channelCount,latency}
I have not included `autoGainControl` or `noiseSuppression` in this commit as they are only in the working draft, not the current candidate recommendation. Fixes microsoft#286.
1 parent f6f48a0 commit c4985c1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

baselines/dom.generated.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ interface MediaTrackConstraints extends MediaTrackConstraintSet {
297297

298298
interface MediaTrackConstraintSet {
299299
echoCancellation?: boolean | ConstrainBooleanParameters;
300+
channelCount?: long | ConstrainLongRange;
301+
latency?: double | ConstrainDoubleRange;
300302
aspectRatio?: number | ConstrainDoubleRange;
301303
deviceId?: string | string[] | ConstrainDOMStringParameters;
302304
facingMode?: string | string[] | ConstrainDOMStringParameters;

inputfiles/addedTypes.json

+12
Original file line numberDiff line numberDiff line change
@@ -1770,5 +1770,17 @@
17701770
"interface": "MediaTrackConstraintSet",
17711771
"name": "echoCancellation?",
17721772
"type": "boolean | ConstrainBooleanParameters"
1773+
},
1774+
{
1775+
"kind": "property",
1776+
"interface": "MediaTrackConstraintSet",
1777+
"name": "channelCount?",
1778+
"type": "long | ConstrainLongRange"
1779+
},
1780+
{
1781+
"kind": "property",
1782+
"interface": "MediaTrackConstraintSet",
1783+
"name": "latency?",
1784+
"type": "double | ConstrainDoubleRange"
17731785
}
17741786
]

0 commit comments

Comments
 (0)