1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaTrackCapabilities)]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `MediaTrackCapabilities` dictionary."]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
13 #[doc = ""]
14 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
15 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
16 pub type MediaTrackCapabilities;
17 #[cfg(web_sys_unstable_apis)]
18 #[cfg(feature = "DoubleRange")]
19 #[doc = "Get the `aspectRatio` field of this object."]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"]
22 #[doc = ""]
23 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
24 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
25 #[wasm_bindgen(method, getter = "aspectRatio")]
26 pub fn get_aspect_ratio(this: &MediaTrackCapabilities) -> Option<DoubleRange>;
27 #[cfg(web_sys_unstable_apis)]
28 #[cfg(feature = "DoubleRange")]
29 #[doc = "Change the `aspectRatio` field of this object."]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"]
32 #[doc = ""]
33 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
34 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
35 #[wasm_bindgen(method, setter = "aspectRatio")]
36 pub fn set_aspect_ratio(this: &MediaTrackCapabilities, val: &DoubleRange);
37 #[cfg(web_sys_unstable_apis)]
38 #[doc = "Get the `autoGainControl` field of this object."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
41 #[doc = ""]
42 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
44 #[wasm_bindgen(method, getter = "autoGainControl")]
45 pub fn get_auto_gain_control(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>;
46 #[cfg(web_sys_unstable_apis)]
47 #[doc = "Change the `autoGainControl` field of this object."]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
50 #[doc = ""]
51 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
52 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
53 #[wasm_bindgen(method, setter = "autoGainControl")]
54 pub fn set_auto_gain_control(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue);
55 #[cfg(web_sys_unstable_apis)]
56 #[doc = "Get the `backgroundBlur` field of this object."]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
59 #[doc = ""]
60 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
61 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
62 #[wasm_bindgen(method, getter = "backgroundBlur")]
63 pub fn get_background_blur(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>;
64 #[cfg(web_sys_unstable_apis)]
65 #[doc = "Change the `backgroundBlur` field of this object."]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
68 #[doc = ""]
69 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
70 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
71 #[wasm_bindgen(method, setter = "backgroundBlur")]
72 pub fn set_background_blur(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue);
73 #[cfg(web_sys_unstable_apis)]
74 #[cfg(feature = "ULongRange")]
75 #[doc = "Get the `channelCount` field of this object."]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"]
78 #[doc = ""]
79 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
80 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
81 #[wasm_bindgen(method, getter = "channelCount")]
82 pub fn get_channel_count(this: &MediaTrackCapabilities) -> Option<ULongRange>;
83 #[cfg(web_sys_unstable_apis)]
84 #[cfg(feature = "ULongRange")]
85 #[doc = "Change the `channelCount` field of this object."]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"]
88 #[doc = ""]
89 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
90 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
91 #[wasm_bindgen(method, setter = "channelCount")]
92 pub fn set_channel_count(this: &MediaTrackCapabilities, val: &ULongRange);
93 #[cfg(web_sys_unstable_apis)]
94 #[doc = "Get the `deviceId` field of this object."]
95 #[doc = ""]
96 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
97 #[doc = ""]
98 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
99 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
100 #[wasm_bindgen(method, getter = "deviceId")]
101 pub fn get_device_id(this: &MediaTrackCapabilities) -> Option<::alloc::string::String>;
102 #[cfg(web_sys_unstable_apis)]
103 #[doc = "Change the `deviceId` field of this object."]
104 #[doc = ""]
105 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
106 #[doc = ""]
107 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
108 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
109 #[wasm_bindgen(method, setter = "deviceId")]
110 pub fn set_device_id(this: &MediaTrackCapabilities, val: &str);
111 #[cfg(web_sys_unstable_apis)]
112 #[doc = "Get the `echoCancellation` field of this object."]
113 #[doc = ""]
114 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
115 #[doc = ""]
116 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
117 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
118 #[wasm_bindgen(method, getter = "echoCancellation")]
119 pub fn get_echo_cancellation(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>;
120 #[cfg(web_sys_unstable_apis)]
121 #[doc = "Change the `echoCancellation` field of this object."]
122 #[doc = ""]
123 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
124 #[doc = ""]
125 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
126 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
127 #[wasm_bindgen(method, setter = "echoCancellation")]
128 pub fn set_echo_cancellation(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue);
129 #[cfg(web_sys_unstable_apis)]
130 #[doc = "Get the `facingMode` field of this object."]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
133 #[doc = ""]
134 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
135 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
136 #[wasm_bindgen(method, getter = "facingMode")]
137 pub fn get_facing_mode(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>;
138 #[cfg(web_sys_unstable_apis)]
139 #[doc = "Change the `facingMode` field of this object."]
140 #[doc = ""]
141 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
142 #[doc = ""]
143 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
144 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
145 #[wasm_bindgen(method, setter = "facingMode")]
146 pub fn set_facing_mode(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue);
147 #[cfg(web_sys_unstable_apis)]
148 #[cfg(feature = "DoubleRange")]
149 #[doc = "Get the `frameRate` field of this object."]
150 #[doc = ""]
151 #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"]
152 #[doc = ""]
153 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
154 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
155 #[wasm_bindgen(method, getter = "frameRate")]
156 pub fn get_frame_rate(this: &MediaTrackCapabilities) -> Option<DoubleRange>;
157 #[cfg(web_sys_unstable_apis)]
158 #[cfg(feature = "DoubleRange")]
159 #[doc = "Change the `frameRate` field of this object."]
160 #[doc = ""]
161 #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"]
162 #[doc = ""]
163 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
164 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
165 #[wasm_bindgen(method, setter = "frameRate")]
166 pub fn set_frame_rate(this: &MediaTrackCapabilities, val: &DoubleRange);
167 #[cfg(web_sys_unstable_apis)]
168 #[doc = "Get the `groupId` field of this object."]
169 #[doc = ""]
170 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
171 #[doc = ""]
172 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
173 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
174 #[wasm_bindgen(method, getter = "groupId")]
175 pub fn get_group_id(this: &MediaTrackCapabilities) -> Option<::alloc::string::String>;
176 #[cfg(web_sys_unstable_apis)]
177 #[doc = "Change the `groupId` field of this object."]
178 #[doc = ""]
179 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
180 #[doc = ""]
181 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
182 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
183 #[wasm_bindgen(method, setter = "groupId")]
184 pub fn set_group_id(this: &MediaTrackCapabilities, val: &str);
185 #[cfg(web_sys_unstable_apis)]
186 #[cfg(feature = "ULongRange")]
187 #[doc = "Get the `height` field of this object."]
188 #[doc = ""]
189 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"]
190 #[doc = ""]
191 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
192 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
193 #[wasm_bindgen(method, getter = "height")]
194 pub fn get_height(this: &MediaTrackCapabilities) -> Option<ULongRange>;
195 #[cfg(web_sys_unstable_apis)]
196 #[cfg(feature = "ULongRange")]
197 #[doc = "Change the `height` field of this object."]
198 #[doc = ""]
199 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"]
200 #[doc = ""]
201 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
202 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
203 #[wasm_bindgen(method, setter = "height")]
204 pub fn set_height(this: &MediaTrackCapabilities, val: &ULongRange);
205 #[cfg(web_sys_unstable_apis)]
206 #[cfg(feature = "DoubleRange")]
207 #[doc = "Get the `latency` field of this object."]
208 #[doc = ""]
209 #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"]
210 #[doc = ""]
211 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
212 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
213 #[wasm_bindgen(method, getter = "latency")]
214 pub fn get_latency(this: &MediaTrackCapabilities) -> Option<DoubleRange>;
215 #[cfg(web_sys_unstable_apis)]
216 #[cfg(feature = "DoubleRange")]
217 #[doc = "Change the `latency` field of this object."]
218 #[doc = ""]
219 #[doc = "*This API requires the following crate features to be activated: `DoubleRange`, `MediaTrackCapabilities`*"]
220 #[doc = ""]
221 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
222 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
223 #[wasm_bindgen(method, setter = "latency")]
224 pub fn set_latency(this: &MediaTrackCapabilities, val: &DoubleRange);
225 #[cfg(web_sys_unstable_apis)]
226 #[doc = "Get the `noiseSuppression` field of this object."]
227 #[doc = ""]
228 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
229 #[doc = ""]
230 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
231 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
232 #[wasm_bindgen(method, getter = "noiseSuppression")]
233 pub fn get_noise_suppression(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>;
234 #[cfg(web_sys_unstable_apis)]
235 #[doc = "Change the `noiseSuppression` field of this object."]
236 #[doc = ""]
237 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
238 #[doc = ""]
239 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
240 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
241 #[wasm_bindgen(method, setter = "noiseSuppression")]
242 pub fn set_noise_suppression(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue);
243 #[cfg(web_sys_unstable_apis)]
244 #[doc = "Get the `resizeMode` field of this object."]
245 #[doc = ""]
246 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
247 #[doc = ""]
248 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
249 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
250 #[wasm_bindgen(method, getter = "resizeMode")]
251 pub fn get_resize_mode(this: &MediaTrackCapabilities) -> Option<::js_sys::Array>;
252 #[cfg(web_sys_unstable_apis)]
253 #[doc = "Change the `resizeMode` field of this object."]
254 #[doc = ""]
255 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
256 #[doc = ""]
257 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
258 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
259 #[wasm_bindgen(method, setter = "resizeMode")]
260 pub fn set_resize_mode(this: &MediaTrackCapabilities, val: &::wasm_bindgen::JsValue);
261 #[cfg(web_sys_unstable_apis)]
262 #[cfg(feature = "ULongRange")]
263 #[doc = "Get the `sampleRate` field of this object."]
264 #[doc = ""]
265 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"]
266 #[doc = ""]
267 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
268 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
269 #[wasm_bindgen(method, getter = "sampleRate")]
270 pub fn get_sample_rate(this: &MediaTrackCapabilities) -> Option<ULongRange>;
271 #[cfg(web_sys_unstable_apis)]
272 #[cfg(feature = "ULongRange")]
273 #[doc = "Change the `sampleRate` field of this object."]
274 #[doc = ""]
275 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"]
276 #[doc = ""]
277 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
278 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
279 #[wasm_bindgen(method, setter = "sampleRate")]
280 pub fn set_sample_rate(this: &MediaTrackCapabilities, val: &ULongRange);
281 #[cfg(web_sys_unstable_apis)]
282 #[cfg(feature = "ULongRange")]
283 #[doc = "Get the `sampleSize` field of this object."]
284 #[doc = ""]
285 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"]
286 #[doc = ""]
287 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
288 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
289 #[wasm_bindgen(method, getter = "sampleSize")]
290 pub fn get_sample_size(this: &MediaTrackCapabilities) -> Option<ULongRange>;
291 #[cfg(web_sys_unstable_apis)]
292 #[cfg(feature = "ULongRange")]
293 #[doc = "Change the `sampleSize` field of this object."]
294 #[doc = ""]
295 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"]
296 #[doc = ""]
297 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
298 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
299 #[wasm_bindgen(method, setter = "sampleSize")]
300 pub fn set_sample_size(this: &MediaTrackCapabilities, val: &ULongRange);
301 #[cfg(web_sys_unstable_apis)]
302 #[cfg(feature = "ULongRange")]
303 #[doc = "Get the `width` field of this object."]
304 #[doc = ""]
305 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"]
306 #[doc = ""]
307 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
308 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
309 #[wasm_bindgen(method, getter = "width")]
310 pub fn get_width(this: &MediaTrackCapabilities) -> Option<ULongRange>;
311 #[cfg(web_sys_unstable_apis)]
312 #[cfg(feature = "ULongRange")]
313 #[doc = "Change the `width` field of this object."]
314 #[doc = ""]
315 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`, `ULongRange`*"]
316 #[doc = ""]
317 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
318 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
319 #[wasm_bindgen(method, setter = "width")]
320 pub fn set_width(this: &MediaTrackCapabilities, val: &ULongRange);
321}
322#[cfg(web_sys_unstable_apis)]
323impl MediaTrackCapabilities {
324 #[doc = "Construct a new `MediaTrackCapabilities`."]
325 #[doc = ""]
326 #[doc = "*This API requires the following crate features to be activated: `MediaTrackCapabilities`*"]
327 #[doc = ""]
328 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
329 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
330 pub fn new() -> Self {
331 #[allow(unused_mut)]
332 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
333 ret
334 }
335 #[cfg(web_sys_unstable_apis)]
336 #[cfg(feature = "DoubleRange")]
337 #[deprecated = "Use `set_aspect_ratio()` instead."]
338 pub fn aspect_ratio(&mut self, val: &DoubleRange) -> &mut Self {
339 self.set_aspect_ratio(val);
340 self
341 }
342 #[cfg(web_sys_unstable_apis)]
343 #[deprecated = "Use `set_auto_gain_control()` instead."]
344 pub fn auto_gain_control(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
345 self.set_auto_gain_control(val);
346 self
347 }
348 #[cfg(web_sys_unstable_apis)]
349 #[deprecated = "Use `set_background_blur()` instead."]
350 pub fn background_blur(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
351 self.set_background_blur(val);
352 self
353 }
354 #[cfg(web_sys_unstable_apis)]
355 #[cfg(feature = "ULongRange")]
356 #[deprecated = "Use `set_channel_count()` instead."]
357 pub fn channel_count(&mut self, val: &ULongRange) -> &mut Self {
358 self.set_channel_count(val);
359 self
360 }
361 #[cfg(web_sys_unstable_apis)]
362 #[deprecated = "Use `set_device_id()` instead."]
363 pub fn device_id(&mut self, val: &str) -> &mut Self {
364 self.set_device_id(val);
365 self
366 }
367 #[cfg(web_sys_unstable_apis)]
368 #[deprecated = "Use `set_echo_cancellation()` instead."]
369 pub fn echo_cancellation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
370 self.set_echo_cancellation(val);
371 self
372 }
373 #[cfg(web_sys_unstable_apis)]
374 #[deprecated = "Use `set_facing_mode()` instead."]
375 pub fn facing_mode(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
376 self.set_facing_mode(val);
377 self
378 }
379 #[cfg(web_sys_unstable_apis)]
380 #[cfg(feature = "DoubleRange")]
381 #[deprecated = "Use `set_frame_rate()` instead."]
382 pub fn frame_rate(&mut self, val: &DoubleRange) -> &mut Self {
383 self.set_frame_rate(val);
384 self
385 }
386 #[cfg(web_sys_unstable_apis)]
387 #[deprecated = "Use `set_group_id()` instead."]
388 pub fn group_id(&mut self, val: &str) -> &mut Self {
389 self.set_group_id(val);
390 self
391 }
392 #[cfg(web_sys_unstable_apis)]
393 #[cfg(feature = "ULongRange")]
394 #[deprecated = "Use `set_height()` instead."]
395 pub fn height(&mut self, val: &ULongRange) -> &mut Self {
396 self.set_height(val);
397 self
398 }
399 #[cfg(web_sys_unstable_apis)]
400 #[cfg(feature = "DoubleRange")]
401 #[deprecated = "Use `set_latency()` instead."]
402 pub fn latency(&mut self, val: &DoubleRange) -> &mut Self {
403 self.set_latency(val);
404 self
405 }
406 #[cfg(web_sys_unstable_apis)]
407 #[deprecated = "Use `set_noise_suppression()` instead."]
408 pub fn noise_suppression(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
409 self.set_noise_suppression(val);
410 self
411 }
412 #[cfg(web_sys_unstable_apis)]
413 #[deprecated = "Use `set_resize_mode()` instead."]
414 pub fn resize_mode(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
415 self.set_resize_mode(val);
416 self
417 }
418 #[cfg(web_sys_unstable_apis)]
419 #[cfg(feature = "ULongRange")]
420 #[deprecated = "Use `set_sample_rate()` instead."]
421 pub fn sample_rate(&mut self, val: &ULongRange) -> &mut Self {
422 self.set_sample_rate(val);
423 self
424 }
425 #[cfg(web_sys_unstable_apis)]
426 #[cfg(feature = "ULongRange")]
427 #[deprecated = "Use `set_sample_size()` instead."]
428 pub fn sample_size(&mut self, val: &ULongRange) -> &mut Self {
429 self.set_sample_size(val);
430 self
431 }
432 #[cfg(web_sys_unstable_apis)]
433 #[cfg(feature = "ULongRange")]
434 #[deprecated = "Use `set_width()` instead."]
435 pub fn width(&mut self, val: &ULongRange) -> &mut Self {
436 self.set_width(val);
437 self
438 }
439}
440#[cfg(web_sys_unstable_apis)]
441impl Default for MediaTrackCapabilities {
442 fn default() -> Self {
443 Self::new()
444 }
445}