web_sys/features/
gen_RtcRtpSender.rs1#![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 = RTCRtpSender , typescript_type = "RTCRtpSender")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `RtcRtpSender` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"]
14 pub type RtcRtpSender;
15 #[cfg(feature = "MediaStreamTrack")]
16 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpSender" , js_name = track)]
17 #[doc = "Getter for the `track` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/track)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpSender`*"]
22 pub fn track(this: &RtcRtpSender) -> Option<MediaStreamTrack>;
23 #[cfg(feature = "RtcdtmfSender")]
24 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpSender" , js_name = dtmf)]
25 #[doc = "Getter for the `dtmf` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/dtmf)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`, `RtcdtmfSender`*"]
30 pub fn dtmf(this: &RtcRtpSender) -> Option<RtcdtmfSender>;
31 #[cfg(web_sys_unstable_apis)]
32 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpSender" , js_name = transform)]
33 #[doc = "Getter for the `transform` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/transform)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"]
38 #[doc = ""]
39 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
40 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
41 pub fn transform(this: &RtcRtpSender) -> Option<::js_sys::Object>;
42 #[cfg(web_sys_unstable_apis)]
43 #[cfg(feature = "SFrameTransform")]
44 # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpSender" , js_name = transform)]
45 #[doc = "Setter for the `transform` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/transform)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`, `SFrameTransform`*"]
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 pub fn set_transform_opt_s_frame_transform(
54 this: &RtcRtpSender,
55 value: Option<&SFrameTransform>,
56 );
57 #[cfg(web_sys_unstable_apis)]
58 #[cfg(feature = "RtcRtpScriptTransform")]
59 # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpSender" , js_name = transform)]
60 #[doc = "Setter for the `transform` field of this object."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/transform)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransform`, `RtcRtpSender`*"]
65 #[doc = ""]
66 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
67 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
68 pub fn set_transform_opt_rtc_rtp_script_transform(
69 this: &RtcRtpSender,
70 value: Option<&RtcRtpScriptTransform>,
71 );
72 #[cfg(web_sys_unstable_apis)]
73 # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = generateKeyFrame)]
74 #[doc = "The `generateKeyFrame()` method."]
75 #[doc = ""]
76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/generateKeyFrame)"]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"]
79 #[doc = ""]
80 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
81 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
82 pub fn generate_key_frame(this: &RtcRtpSender) -> ::js_sys::Promise;
83 #[cfg(web_sys_unstable_apis)]
84 # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = generateKeyFrame)]
85 #[doc = "The `generateKeyFrame()` method."]
86 #[doc = ""]
87 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/generateKeyFrame)"]
88 #[doc = ""]
89 #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"]
90 #[doc = ""]
91 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
92 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
93 pub fn generate_key_frame_with_rids(
94 this: &RtcRtpSender,
95 rids: &::wasm_bindgen::JsValue,
96 ) -> ::js_sys::Promise;
97 #[cfg(feature = "RtcRtpCapabilities")]
98 # [wasm_bindgen (static_method_of = RtcRtpSender , js_class = "RTCRtpSender" , js_name = getCapabilities)]
99 #[doc = "The `getCapabilities()` method."]
100 #[doc = ""]
101 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getCapabilities_static)"]
102 #[doc = ""]
103 #[doc = "*This API requires the following crate features to be activated: `RtcRtpCapabilities`, `RtcRtpSender`*"]
104 pub fn get_capabilities(kind: &str) -> Option<RtcRtpCapabilities>;
105 #[cfg(feature = "RtcRtpParameters")]
106 # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = getParameters)]
107 #[doc = "The `getParameters()` method."]
108 #[doc = ""]
109 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getParameters)"]
110 #[doc = ""]
111 #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`, `RtcRtpSender`*"]
112 pub fn get_parameters(this: &RtcRtpSender) -> RtcRtpParameters;
113 # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = getStats)]
114 #[doc = "The `getStats()` method."]
115 #[doc = ""]
116 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getStats)"]
117 #[doc = ""]
118 #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"]
119 pub fn get_stats(this: &RtcRtpSender) -> ::js_sys::Promise;
120 #[cfg(feature = "MediaStreamTrack")]
121 # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = replaceTrack)]
122 #[doc = "The `replaceTrack()` method."]
123 #[doc = ""]
124 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/replaceTrack)"]
125 #[doc = ""]
126 #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpSender`*"]
127 pub fn replace_track(
128 this: &RtcRtpSender,
129 with_track: Option<&MediaStreamTrack>,
130 ) -> ::js_sys::Promise;
131 # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = setParameters)]
132 #[doc = "The `setParameters()` method."]
133 #[doc = ""]
134 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/setParameters)"]
135 #[doc = ""]
136 #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"]
137 pub fn set_parameters(this: &RtcRtpSender) -> ::js_sys::Promise;
138 #[cfg(feature = "RtcRtpParameters")]
139 # [wasm_bindgen (method , structural , js_class = "RTCRtpSender" , js_name = setParameters)]
140 #[doc = "The `setParameters()` method."]
141 #[doc = ""]
142 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/setParameters)"]
143 #[doc = ""]
144 #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`, `RtcRtpSender`*"]
145 pub fn set_parameters_with_parameters(
146 this: &RtcRtpSender,
147 parameters: &RtcRtpParameters,
148 ) -> ::js_sys::Promise;
149}