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