Skip to main content

web_sys/features/
gen_MediaTrackConstraintSet.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaTrackConstraintSet)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `MediaTrackConstraintSet` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
12    pub type MediaTrackConstraintSet;
13    #[doc = "Get the `autoGainControl` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
16    #[wasm_bindgen(method, getter = "autoGainControl")]
17    pub fn get_auto_gain_control(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
18    #[doc = "Change the `autoGainControl` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
21    #[wasm_bindgen(method, setter = "autoGainControl")]
22    pub fn set_auto_gain_control(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
23    #[doc = "Change the `autoGainControl` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
26    #[wasm_bindgen(method, setter = "autoGainControl")]
27    pub fn set_auto_gain_control_bool(this: &MediaTrackConstraintSet, val: bool);
28    #[cfg(feature = "ConstrainBooleanParameters")]
29    #[doc = "Change the `autoGainControl` field of this object."]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
32    #[wasm_bindgen(method, setter = "autoGainControl")]
33    pub fn set_auto_gain_control_constrain_boolean_parameters(
34        this: &MediaTrackConstraintSet,
35        val: &ConstrainBooleanParameters,
36    );
37    #[doc = "Get the `browserWindow` field of this object."]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
40    #[wasm_bindgen(method, getter = "browserWindow")]
41    pub fn get_browser_window(this: &MediaTrackConstraintSet) -> Option<f64>;
42    #[doc = "Change the `browserWindow` field of this object."]
43    #[doc = ""]
44    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
45    #[wasm_bindgen(method, setter = "browserWindow")]
46    pub fn set_browser_window(this: &MediaTrackConstraintSet, val: f64);
47    #[doc = "Change the `browserWindow` field of this object."]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
50    #[wasm_bindgen(method, setter = "browserWindow")]
51    pub fn set_browser_window_i32(this: &MediaTrackConstraintSet, val: i32);
52    #[doc = "Change the `browserWindow` field of this object."]
53    #[doc = ""]
54    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
55    #[wasm_bindgen(method, setter = "browserWindow")]
56    pub fn set_browser_window_f64(this: &MediaTrackConstraintSet, val: f64);
57    #[doc = "Get the `channelCount` field of this object."]
58    #[doc = ""]
59    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
60    #[wasm_bindgen(method, getter = "channelCount")]
61    pub fn get_channel_count(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
62    #[doc = "Change the `channelCount` field of this object."]
63    #[doc = ""]
64    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
65    #[wasm_bindgen(method, setter = "channelCount")]
66    pub fn set_channel_count(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
67    #[doc = "Change the `channelCount` field of this object."]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
70    #[wasm_bindgen(method, setter = "channelCount")]
71    pub fn set_channel_count_i32(this: &MediaTrackConstraintSet, val: i32);
72    #[cfg(feature = "ConstrainLongRange")]
73    #[doc = "Change the `channelCount` field of this object."]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
76    #[wasm_bindgen(method, setter = "channelCount")]
77    pub fn set_channel_count_constrain_long_range(
78        this: &MediaTrackConstraintSet,
79        val: &ConstrainLongRange,
80    );
81    #[doc = "Get the `deviceId` field of this object."]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
84    #[wasm_bindgen(method, getter = "deviceId")]
85    pub fn get_device_id(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
86    #[doc = "Change the `deviceId` field of this object."]
87    #[doc = ""]
88    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
89    #[wasm_bindgen(method, setter = "deviceId")]
90    pub fn set_device_id(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
91    #[doc = "Change the `deviceId` field of this object."]
92    #[doc = ""]
93    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
94    #[wasm_bindgen(method, setter = "deviceId")]
95    pub fn set_device_id_str(this: &MediaTrackConstraintSet, val: &str);
96    #[doc = "Change the `deviceId` field of this object."]
97    #[doc = ""]
98    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
99    #[wasm_bindgen(method, setter = "deviceId")]
100    pub fn set_device_id_str_sequence(
101        this: &MediaTrackConstraintSet,
102        val: &::wasm_bindgen::JsValue,
103    );
104    #[cfg(feature = "ConstrainDomStringParameters")]
105    #[doc = "Change the `deviceId` field of this object."]
106    #[doc = ""]
107    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
108    #[wasm_bindgen(method, setter = "deviceId")]
109    pub fn set_device_id_constrain_dom_string_parameters(
110        this: &MediaTrackConstraintSet,
111        val: &ConstrainDomStringParameters,
112    );
113    #[doc = "Get the `echoCancellation` field of this object."]
114    #[doc = ""]
115    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
116    #[wasm_bindgen(method, getter = "echoCancellation")]
117    pub fn get_echo_cancellation(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
118    #[doc = "Change the `echoCancellation` field of this object."]
119    #[doc = ""]
120    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
121    #[wasm_bindgen(method, setter = "echoCancellation")]
122    pub fn set_echo_cancellation(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
123    #[doc = "Change the `echoCancellation` field of this object."]
124    #[doc = ""]
125    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
126    #[wasm_bindgen(method, setter = "echoCancellation")]
127    pub fn set_echo_cancellation_bool(this: &MediaTrackConstraintSet, val: bool);
128    #[cfg(feature = "ConstrainBooleanParameters")]
129    #[doc = "Change the `echoCancellation` field of this object."]
130    #[doc = ""]
131    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
132    #[wasm_bindgen(method, setter = "echoCancellation")]
133    pub fn set_echo_cancellation_constrain_boolean_parameters(
134        this: &MediaTrackConstraintSet,
135        val: &ConstrainBooleanParameters,
136    );
137    #[doc = "Get the `facingMode` field of this object."]
138    #[doc = ""]
139    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
140    #[wasm_bindgen(method, getter = "facingMode")]
141    pub fn get_facing_mode(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
142    #[doc = "Change the `facingMode` field of this object."]
143    #[doc = ""]
144    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
145    #[wasm_bindgen(method, setter = "facingMode")]
146    pub fn set_facing_mode(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
147    #[doc = "Change the `facingMode` field of this object."]
148    #[doc = ""]
149    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
150    #[wasm_bindgen(method, setter = "facingMode")]
151    pub fn set_facing_mode_str(this: &MediaTrackConstraintSet, val: &str);
152    #[doc = "Change the `facingMode` field of this object."]
153    #[doc = ""]
154    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
155    #[wasm_bindgen(method, setter = "facingMode")]
156    pub fn set_facing_mode_str_sequence(
157        this: &MediaTrackConstraintSet,
158        val: &::wasm_bindgen::JsValue,
159    );
160    #[cfg(feature = "ConstrainDomStringParameters")]
161    #[doc = "Change the `facingMode` field of this object."]
162    #[doc = ""]
163    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
164    #[wasm_bindgen(method, setter = "facingMode")]
165    pub fn set_facing_mode_constrain_dom_string_parameters(
166        this: &MediaTrackConstraintSet,
167        val: &ConstrainDomStringParameters,
168    );
169    #[doc = "Get the `frameRate` field of this object."]
170    #[doc = ""]
171    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
172    #[wasm_bindgen(method, getter = "frameRate")]
173    pub fn get_frame_rate(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
174    #[doc = "Change the `frameRate` field of this object."]
175    #[doc = ""]
176    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
177    #[wasm_bindgen(method, setter = "frameRate")]
178    pub fn set_frame_rate(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
179    #[doc = "Change the `frameRate` field of this object."]
180    #[doc = ""]
181    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
182    #[wasm_bindgen(method, setter = "frameRate")]
183    pub fn set_frame_rate_f64(this: &MediaTrackConstraintSet, val: f64);
184    #[cfg(feature = "ConstrainDoubleRange")]
185    #[doc = "Change the `frameRate` field of this object."]
186    #[doc = ""]
187    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
188    #[wasm_bindgen(method, setter = "frameRate")]
189    pub fn set_frame_rate_constrain_double_range(
190        this: &MediaTrackConstraintSet,
191        val: &ConstrainDoubleRange,
192    );
193    #[doc = "Get the `height` field of this object."]
194    #[doc = ""]
195    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
196    #[wasm_bindgen(method, getter = "height")]
197    pub fn get_height(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
198    #[doc = "Change the `height` field of this object."]
199    #[doc = ""]
200    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
201    #[wasm_bindgen(method, setter = "height")]
202    pub fn set_height(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
203    #[doc = "Change the `height` field of this object."]
204    #[doc = ""]
205    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
206    #[wasm_bindgen(method, setter = "height")]
207    pub fn set_height_i32(this: &MediaTrackConstraintSet, val: i32);
208    #[cfg(feature = "ConstrainLongRange")]
209    #[doc = "Change the `height` field of this object."]
210    #[doc = ""]
211    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
212    #[wasm_bindgen(method, setter = "height")]
213    pub fn set_height_constrain_long_range(
214        this: &MediaTrackConstraintSet,
215        val: &ConstrainLongRange,
216    );
217    #[doc = "Get the `mediaSource` field of this object."]
218    #[doc = ""]
219    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
220    #[wasm_bindgen(method, getter = "mediaSource")]
221    pub fn get_media_source(this: &MediaTrackConstraintSet) -> Option<::alloc::string::String>;
222    #[doc = "Change the `mediaSource` field of this object."]
223    #[doc = ""]
224    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
225    #[wasm_bindgen(method, setter = "mediaSource")]
226    pub fn set_media_source(this: &MediaTrackConstraintSet, val: &str);
227    #[doc = "Get the `noiseSuppression` field of this object."]
228    #[doc = ""]
229    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
230    #[wasm_bindgen(method, getter = "noiseSuppression")]
231    pub fn get_noise_suppression(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
232    #[doc = "Change the `noiseSuppression` field of this object."]
233    #[doc = ""]
234    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
235    #[wasm_bindgen(method, setter = "noiseSuppression")]
236    pub fn set_noise_suppression(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
237    #[doc = "Change the `noiseSuppression` field of this object."]
238    #[doc = ""]
239    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
240    #[wasm_bindgen(method, setter = "noiseSuppression")]
241    pub fn set_noise_suppression_bool(this: &MediaTrackConstraintSet, val: bool);
242    #[cfg(feature = "ConstrainBooleanParameters")]
243    #[doc = "Change the `noiseSuppression` field of this object."]
244    #[doc = ""]
245    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
246    #[wasm_bindgen(method, setter = "noiseSuppression")]
247    pub fn set_noise_suppression_constrain_boolean_parameters(
248        this: &MediaTrackConstraintSet,
249        val: &ConstrainBooleanParameters,
250    );
251    #[doc = "Get the `scrollWithPage` field of this object."]
252    #[doc = ""]
253    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
254    #[wasm_bindgen(method, getter = "scrollWithPage")]
255    pub fn get_scroll_with_page(this: &MediaTrackConstraintSet) -> Option<bool>;
256    #[doc = "Change the `scrollWithPage` field of this object."]
257    #[doc = ""]
258    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
259    #[wasm_bindgen(method, setter = "scrollWithPage")]
260    pub fn set_scroll_with_page(this: &MediaTrackConstraintSet, val: bool);
261    #[doc = "Get the `viewportHeight` field of this object."]
262    #[doc = ""]
263    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
264    #[wasm_bindgen(method, getter = "viewportHeight")]
265    pub fn get_viewport_height(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
266    #[doc = "Change the `viewportHeight` field of this object."]
267    #[doc = ""]
268    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
269    #[wasm_bindgen(method, setter = "viewportHeight")]
270    pub fn set_viewport_height(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
271    #[doc = "Change the `viewportHeight` field of this object."]
272    #[doc = ""]
273    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
274    #[wasm_bindgen(method, setter = "viewportHeight")]
275    pub fn set_viewport_height_i32(this: &MediaTrackConstraintSet, val: i32);
276    #[cfg(feature = "ConstrainLongRange")]
277    #[doc = "Change the `viewportHeight` field of this object."]
278    #[doc = ""]
279    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
280    #[wasm_bindgen(method, setter = "viewportHeight")]
281    pub fn set_viewport_height_constrain_long_range(
282        this: &MediaTrackConstraintSet,
283        val: &ConstrainLongRange,
284    );
285    #[doc = "Get the `viewportOffsetX` field of this object."]
286    #[doc = ""]
287    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
288    #[wasm_bindgen(method, getter = "viewportOffsetX")]
289    pub fn get_viewport_offset_x(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
290    #[doc = "Change the `viewportOffsetX` field of this object."]
291    #[doc = ""]
292    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
293    #[wasm_bindgen(method, setter = "viewportOffsetX")]
294    pub fn set_viewport_offset_x(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
295    #[doc = "Change the `viewportOffsetX` field of this object."]
296    #[doc = ""]
297    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
298    #[wasm_bindgen(method, setter = "viewportOffsetX")]
299    pub fn set_viewport_offset_x_i32(this: &MediaTrackConstraintSet, val: i32);
300    #[cfg(feature = "ConstrainLongRange")]
301    #[doc = "Change the `viewportOffsetX` field of this object."]
302    #[doc = ""]
303    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
304    #[wasm_bindgen(method, setter = "viewportOffsetX")]
305    pub fn set_viewport_offset_x_constrain_long_range(
306        this: &MediaTrackConstraintSet,
307        val: &ConstrainLongRange,
308    );
309    #[doc = "Get the `viewportOffsetY` field of this object."]
310    #[doc = ""]
311    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
312    #[wasm_bindgen(method, getter = "viewportOffsetY")]
313    pub fn get_viewport_offset_y(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
314    #[doc = "Change the `viewportOffsetY` field of this object."]
315    #[doc = ""]
316    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
317    #[wasm_bindgen(method, setter = "viewportOffsetY")]
318    pub fn set_viewport_offset_y(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
319    #[doc = "Change the `viewportOffsetY` field of this object."]
320    #[doc = ""]
321    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
322    #[wasm_bindgen(method, setter = "viewportOffsetY")]
323    pub fn set_viewport_offset_y_i32(this: &MediaTrackConstraintSet, val: i32);
324    #[cfg(feature = "ConstrainLongRange")]
325    #[doc = "Change the `viewportOffsetY` field of this object."]
326    #[doc = ""]
327    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
328    #[wasm_bindgen(method, setter = "viewportOffsetY")]
329    pub fn set_viewport_offset_y_constrain_long_range(
330        this: &MediaTrackConstraintSet,
331        val: &ConstrainLongRange,
332    );
333    #[doc = "Get the `viewportWidth` field of this object."]
334    #[doc = ""]
335    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
336    #[wasm_bindgen(method, getter = "viewportWidth")]
337    pub fn get_viewport_width(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
338    #[doc = "Change the `viewportWidth` field of this object."]
339    #[doc = ""]
340    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
341    #[wasm_bindgen(method, setter = "viewportWidth")]
342    pub fn set_viewport_width(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
343    #[doc = "Change the `viewportWidth` field of this object."]
344    #[doc = ""]
345    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
346    #[wasm_bindgen(method, setter = "viewportWidth")]
347    pub fn set_viewport_width_i32(this: &MediaTrackConstraintSet, val: i32);
348    #[cfg(feature = "ConstrainLongRange")]
349    #[doc = "Change the `viewportWidth` field of this object."]
350    #[doc = ""]
351    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
352    #[wasm_bindgen(method, setter = "viewportWidth")]
353    pub fn set_viewport_width_constrain_long_range(
354        this: &MediaTrackConstraintSet,
355        val: &ConstrainLongRange,
356    );
357    #[doc = "Get the `width` field of this object."]
358    #[doc = ""]
359    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
360    #[wasm_bindgen(method, getter = "width")]
361    pub fn get_width(this: &MediaTrackConstraintSet) -> ::wasm_bindgen::JsValue;
362    #[doc = "Change the `width` field of this object."]
363    #[doc = ""]
364    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
365    #[wasm_bindgen(method, setter = "width")]
366    pub fn set_width(this: &MediaTrackConstraintSet, val: &::wasm_bindgen::JsValue);
367    #[doc = "Change the `width` field of this object."]
368    #[doc = ""]
369    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
370    #[wasm_bindgen(method, setter = "width")]
371    pub fn set_width_i32(this: &MediaTrackConstraintSet, val: i32);
372    #[cfg(feature = "ConstrainLongRange")]
373    #[doc = "Change the `width` field of this object."]
374    #[doc = ""]
375    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
376    #[wasm_bindgen(method, setter = "width")]
377    pub fn set_width_constrain_long_range(this: &MediaTrackConstraintSet, val: &ConstrainLongRange);
378}
379impl MediaTrackConstraintSet {
380    #[doc = "Construct a new `MediaTrackConstraintSet`."]
381    #[doc = ""]
382    #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"]
383    pub fn new() -> Self {
384        #[allow(unused_mut)]
385        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
386        ret
387    }
388    #[deprecated = "Use `set_auto_gain_control()` instead."]
389    pub fn auto_gain_control(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
390        self.set_auto_gain_control(val);
391        self
392    }
393    #[deprecated = "Use `set_browser_window()` instead."]
394    pub fn browser_window(&mut self, val: f64) -> &mut Self {
395        self.set_browser_window(val);
396        self
397    }
398    #[deprecated = "Use `set_channel_count()` instead."]
399    pub fn channel_count(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
400        self.set_channel_count(val);
401        self
402    }
403    #[deprecated = "Use `set_device_id()` instead."]
404    pub fn device_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
405        self.set_device_id(val);
406        self
407    }
408    #[deprecated = "Use `set_echo_cancellation()` instead."]
409    pub fn echo_cancellation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
410        self.set_echo_cancellation(val);
411        self
412    }
413    #[deprecated = "Use `set_facing_mode()` instead."]
414    pub fn facing_mode(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
415        self.set_facing_mode(val);
416        self
417    }
418    #[deprecated = "Use `set_frame_rate()` instead."]
419    pub fn frame_rate(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
420        self.set_frame_rate(val);
421        self
422    }
423    #[deprecated = "Use `set_height()` instead."]
424    pub fn height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
425        self.set_height(val);
426        self
427    }
428    #[deprecated = "Use `set_media_source()` instead."]
429    pub fn media_source(&mut self, val: &str) -> &mut Self {
430        self.set_media_source(val);
431        self
432    }
433    #[deprecated = "Use `set_noise_suppression()` instead."]
434    pub fn noise_suppression(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
435        self.set_noise_suppression(val);
436        self
437    }
438    #[deprecated = "Use `set_scroll_with_page()` instead."]
439    pub fn scroll_with_page(&mut self, val: bool) -> &mut Self {
440        self.set_scroll_with_page(val);
441        self
442    }
443    #[deprecated = "Use `set_viewport_height()` instead."]
444    pub fn viewport_height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
445        self.set_viewport_height(val);
446        self
447    }
448    #[deprecated = "Use `set_viewport_offset_x()` instead."]
449    pub fn viewport_offset_x(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
450        self.set_viewport_offset_x(val);
451        self
452    }
453    #[deprecated = "Use `set_viewport_offset_y()` instead."]
454    pub fn viewport_offset_y(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
455        self.set_viewport_offset_y(val);
456        self
457    }
458    #[deprecated = "Use `set_viewport_width()` instead."]
459    pub fn viewport_width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
460        self.set_viewport_width(val);
461        self
462    }
463    #[deprecated = "Use `set_width()` instead."]
464    pub fn width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
465        self.set_width(val);
466        self
467    }
468}
469impl Default for MediaTrackConstraintSet {
470    fn default() -> Self {
471        Self::new()
472    }
473}