1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamTrack , typescript_type = "MediaStreamTrack")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `MediaStreamTrack` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
13     pub type MediaStreamTrack;
14     # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = kind)]
15     #[doc = "Getter for the `kind` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/kind)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
kind(this: &MediaStreamTrack) -> String20     pub fn kind(this: &MediaStreamTrack) -> String;
21     # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = id)]
22     #[doc = "Getter for the `id` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/id)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
id(this: &MediaStreamTrack) -> String27     pub fn id(this: &MediaStreamTrack) -> String;
28     # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = label)]
29     #[doc = "Getter for the `label` field of this object."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/label)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
label(this: &MediaStreamTrack) -> String34     pub fn label(this: &MediaStreamTrack) -> String;
35     # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = enabled)]
36     #[doc = "Getter for the `enabled` field of this object."]
37     #[doc = ""]
38     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
enabled(this: &MediaStreamTrack) -> bool41     pub fn enabled(this: &MediaStreamTrack) -> bool;
42     # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = enabled)]
43     #[doc = "Setter for the `enabled` field of this object."]
44     #[doc = ""]
45     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled)"]
46     #[doc = ""]
47     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
set_enabled(this: &MediaStreamTrack, value: bool)48     pub fn set_enabled(this: &MediaStreamTrack, value: bool);
49     # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = muted)]
50     #[doc = "Getter for the `muted` field of this object."]
51     #[doc = ""]
52     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/muted)"]
53     #[doc = ""]
54     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
muted(this: &MediaStreamTrack) -> bool55     pub fn muted(this: &MediaStreamTrack) -> bool;
56     # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = onmute)]
57     #[doc = "Getter for the `onmute` field of this object."]
58     #[doc = ""]
59     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute)"]
60     #[doc = ""]
61     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
onmute(this: &MediaStreamTrack) -> Option<::js_sys::Function>62     pub fn onmute(this: &MediaStreamTrack) -> Option<::js_sys::Function>;
63     # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = onmute)]
64     #[doc = "Setter for the `onmute` field of this object."]
65     #[doc = ""]
66     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute)"]
67     #[doc = ""]
68     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
set_onmute(this: &MediaStreamTrack, value: Option<&::js_sys::Function>)69     pub fn set_onmute(this: &MediaStreamTrack, value: Option<&::js_sys::Function>);
70     # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = onunmute)]
71     #[doc = "Getter for the `onunmute` field of this object."]
72     #[doc = ""]
73     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute)"]
74     #[doc = ""]
75     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
onunmute(this: &MediaStreamTrack) -> Option<::js_sys::Function>76     pub fn onunmute(this: &MediaStreamTrack) -> Option<::js_sys::Function>;
77     # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = onunmute)]
78     #[doc = "Setter for the `onunmute` field of this object."]
79     #[doc = ""]
80     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute)"]
81     #[doc = ""]
82     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
set_onunmute(this: &MediaStreamTrack, value: Option<&::js_sys::Function>)83     pub fn set_onunmute(this: &MediaStreamTrack, value: Option<&::js_sys::Function>);
84     #[cfg(feature = "MediaStreamTrackState")]
85     # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = readyState)]
86     #[doc = "Getter for the `readyState` field of this object."]
87     #[doc = ""]
88     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/readyState)"]
89     #[doc = ""]
90     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackState`*"]
ready_state(this: &MediaStreamTrack) -> MediaStreamTrackState91     pub fn ready_state(this: &MediaStreamTrack) -> MediaStreamTrackState;
92     # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = onended)]
93     #[doc = "Getter for the `onended` field of this object."]
94     #[doc = ""]
95     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended)"]
96     #[doc = ""]
97     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
onended(this: &MediaStreamTrack) -> Option<::js_sys::Function>98     pub fn onended(this: &MediaStreamTrack) -> Option<::js_sys::Function>;
99     # [wasm_bindgen (structural , method , setter , js_class = "MediaStreamTrack" , js_name = onended)]
100     #[doc = "Setter for the `onended` field of this object."]
101     #[doc = ""]
102     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended)"]
103     #[doc = ""]
104     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
set_onended(this: &MediaStreamTrack, value: Option<&::js_sys::Function>)105     pub fn set_onended(this: &MediaStreamTrack, value: Option<&::js_sys::Function>);
106     # [wasm_bindgen (catch , method , structural , js_class = "MediaStreamTrack" , js_name = applyConstraints)]
107     #[doc = "The `applyConstraints()` method."]
108     #[doc = ""]
109     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints)"]
110     #[doc = ""]
111     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
apply_constraints(this: &MediaStreamTrack) -> Result<::js_sys::Promise, JsValue>112     pub fn apply_constraints(this: &MediaStreamTrack) -> Result<::js_sys::Promise, JsValue>;
113     #[cfg(feature = "MediaTrackConstraints")]
114     # [wasm_bindgen (catch , method , structural , js_class = "MediaStreamTrack" , js_name = applyConstraints)]
115     #[doc = "The `applyConstraints()` method."]
116     #[doc = ""]
117     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints)"]
118     #[doc = ""]
119     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackConstraints`*"]
apply_constraints_with_constraints( this: &MediaStreamTrack, constraints: &MediaTrackConstraints, ) -> Result<::js_sys::Promise, JsValue>120     pub fn apply_constraints_with_constraints(
121         this: &MediaStreamTrack,
122         constraints: &MediaTrackConstraints,
123     ) -> Result<::js_sys::Promise, JsValue>;
124     # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = clone)]
125     #[doc = "The `clone()` method."]
126     #[doc = ""]
127     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/clone)"]
128     #[doc = ""]
129     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
clone(this: &MediaStreamTrack) -> MediaStreamTrack130     pub fn clone(this: &MediaStreamTrack) -> MediaStreamTrack;
131     #[cfg(feature = "MediaTrackConstraints")]
132     # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = getConstraints)]
133     #[doc = "The `getConstraints()` method."]
134     #[doc = ""]
135     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getConstraints)"]
136     #[doc = ""]
137     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackConstraints`*"]
get_constraints(this: &MediaStreamTrack) -> MediaTrackConstraints138     pub fn get_constraints(this: &MediaStreamTrack) -> MediaTrackConstraints;
139     #[cfg(feature = "MediaTrackSettings")]
140     # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = getSettings)]
141     #[doc = "The `getSettings()` method."]
142     #[doc = ""]
143     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getSettings)"]
144     #[doc = ""]
145     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackSettings`*"]
get_settings(this: &MediaStreamTrack) -> MediaTrackSettings146     pub fn get_settings(this: &MediaStreamTrack) -> MediaTrackSettings;
147     # [wasm_bindgen (method , structural , js_class = "MediaStreamTrack" , js_name = stop)]
148     #[doc = "The `stop()` method."]
149     #[doc = ""]
150     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/stop)"]
151     #[doc = ""]
152     #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"]
stop(this: &MediaStreamTrack)153     pub fn stop(this: &MediaStreamTrack);
154 }
155