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 = RTCOutboundRTPStreamStats)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `RtcOutboundRtpStreamStats` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
12 pub type RtcOutboundRtpStreamStats;
13 #[doc = "Get the `id` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
16 #[wasm_bindgen(method, getter = "id")]
17 pub fn get_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>;
18 #[doc = "Change the `id` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
21 #[wasm_bindgen(method, setter = "id")]
22 pub fn set_id(this: &RtcOutboundRtpStreamStats, val: &str);
23 #[doc = "Get the `timestamp` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
26 #[wasm_bindgen(method, getter = "timestamp")]
27 pub fn get_timestamp(this: &RtcOutboundRtpStreamStats) -> Option<f64>;
28 #[doc = "Change the `timestamp` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
31 #[wasm_bindgen(method, setter = "timestamp")]
32 pub fn set_timestamp(this: &RtcOutboundRtpStreamStats, val: f64);
33 #[cfg(feature = "RtcStatsType")]
34 #[doc = "Get the `type` field of this object."]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`, `RtcStatsType`*"]
37 #[wasm_bindgen(method, getter = "type")]
38 pub fn get_type(this: &RtcOutboundRtpStreamStats) -> Option<RtcStatsType>;
39 #[cfg(feature = "RtcStatsType")]
40 #[doc = "Change the `type` field of this object."]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`, `RtcStatsType`*"]
43 #[wasm_bindgen(method, setter = "type")]
44 pub fn set_type(this: &RtcOutboundRtpStreamStats, val: RtcStatsType);
45 #[doc = "Get the `bitrateMean` field of this object."]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
48 #[wasm_bindgen(method, getter = "bitrateMean")]
49 pub fn get_bitrate_mean(this: &RtcOutboundRtpStreamStats) -> Option<f64>;
50 #[doc = "Change the `bitrateMean` field of this object."]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
53 #[wasm_bindgen(method, setter = "bitrateMean")]
54 pub fn set_bitrate_mean(this: &RtcOutboundRtpStreamStats, val: f64);
55 #[doc = "Get the `bitrateStdDev` field of this object."]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
58 #[wasm_bindgen(method, getter = "bitrateStdDev")]
59 pub fn get_bitrate_std_dev(this: &RtcOutboundRtpStreamStats) -> Option<f64>;
60 #[doc = "Change the `bitrateStdDev` field of this object."]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
63 #[wasm_bindgen(method, setter = "bitrateStdDev")]
64 pub fn set_bitrate_std_dev(this: &RtcOutboundRtpStreamStats, val: f64);
65 #[doc = "Get the `codecId` field of this object."]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
68 #[wasm_bindgen(method, getter = "codecId")]
69 pub fn get_codec_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>;
70 #[doc = "Change the `codecId` field of this object."]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
73 #[wasm_bindgen(method, setter = "codecId")]
74 pub fn set_codec_id(this: &RtcOutboundRtpStreamStats, val: &str);
75 #[doc = "Get the `firCount` field of this object."]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
78 #[wasm_bindgen(method, getter = "firCount")]
79 pub fn get_fir_count(this: &RtcOutboundRtpStreamStats) -> Option<u32>;
80 #[doc = "Change the `firCount` field of this object."]
81 #[doc = ""]
82 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
83 #[wasm_bindgen(method, setter = "firCount")]
84 pub fn set_fir_count(this: &RtcOutboundRtpStreamStats, val: u32);
85 #[doc = "Get the `framerateMean` field of this object."]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
88 #[wasm_bindgen(method, getter = "framerateMean")]
89 pub fn get_framerate_mean(this: &RtcOutboundRtpStreamStats) -> Option<f64>;
90 #[doc = "Change the `framerateMean` field of this object."]
91 #[doc = ""]
92 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
93 #[wasm_bindgen(method, setter = "framerateMean")]
94 pub fn set_framerate_mean(this: &RtcOutboundRtpStreamStats, val: f64);
95 #[doc = "Get the `framerateStdDev` field of this object."]
96 #[doc = ""]
97 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
98 #[wasm_bindgen(method, getter = "framerateStdDev")]
99 pub fn get_framerate_std_dev(this: &RtcOutboundRtpStreamStats) -> Option<f64>;
100 #[doc = "Change the `framerateStdDev` field of this object."]
101 #[doc = ""]
102 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
103 #[wasm_bindgen(method, setter = "framerateStdDev")]
104 pub fn set_framerate_std_dev(this: &RtcOutboundRtpStreamStats, val: f64);
105 #[doc = "Get the `isRemote` field of this object."]
106 #[doc = ""]
107 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
108 #[wasm_bindgen(method, getter = "isRemote")]
109 pub fn get_is_remote(this: &RtcOutboundRtpStreamStats) -> Option<bool>;
110 #[doc = "Change the `isRemote` field of this object."]
111 #[doc = ""]
112 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
113 #[wasm_bindgen(method, setter = "isRemote")]
114 pub fn set_is_remote(this: &RtcOutboundRtpStreamStats, val: bool);
115 #[doc = "Get the `mediaTrackId` field of this object."]
116 #[doc = ""]
117 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
118 #[wasm_bindgen(method, getter = "mediaTrackId")]
119 pub fn get_media_track_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>;
120 #[doc = "Change the `mediaTrackId` field of this object."]
121 #[doc = ""]
122 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
123 #[wasm_bindgen(method, setter = "mediaTrackId")]
124 pub fn set_media_track_id(this: &RtcOutboundRtpStreamStats, val: &str);
125 #[doc = "Get the `mediaType` field of this object."]
126 #[doc = ""]
127 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
128 #[wasm_bindgen(method, getter = "mediaType")]
129 pub fn get_media_type(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>;
130 #[doc = "Change the `mediaType` field of this object."]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
133 #[wasm_bindgen(method, setter = "mediaType")]
134 pub fn set_media_type(this: &RtcOutboundRtpStreamStats, val: &str);
135 #[doc = "Get the `nackCount` field of this object."]
136 #[doc = ""]
137 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
138 #[wasm_bindgen(method, getter = "nackCount")]
139 pub fn get_nack_count(this: &RtcOutboundRtpStreamStats) -> Option<u32>;
140 #[doc = "Change the `nackCount` field of this object."]
141 #[doc = ""]
142 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
143 #[wasm_bindgen(method, setter = "nackCount")]
144 pub fn set_nack_count(this: &RtcOutboundRtpStreamStats, val: u32);
145 #[doc = "Get the `pliCount` field of this object."]
146 #[doc = ""]
147 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
148 #[wasm_bindgen(method, getter = "pliCount")]
149 pub fn get_pli_count(this: &RtcOutboundRtpStreamStats) -> Option<u32>;
150 #[doc = "Change the `pliCount` field of this object."]
151 #[doc = ""]
152 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
153 #[wasm_bindgen(method, setter = "pliCount")]
154 pub fn set_pli_count(this: &RtcOutboundRtpStreamStats, val: u32);
155 #[doc = "Get the `remoteId` field of this object."]
156 #[doc = ""]
157 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
158 #[wasm_bindgen(method, getter = "remoteId")]
159 pub fn get_remote_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>;
160 #[doc = "Change the `remoteId` field of this object."]
161 #[doc = ""]
162 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
163 #[wasm_bindgen(method, setter = "remoteId")]
164 pub fn set_remote_id(this: &RtcOutboundRtpStreamStats, val: &str);
165 #[doc = "Get the `ssrc` field of this object."]
166 #[doc = ""]
167 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
168 #[wasm_bindgen(method, getter = "ssrc")]
169 pub fn get_ssrc(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>;
170 #[doc = "Change the `ssrc` field of this object."]
171 #[doc = ""]
172 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
173 #[wasm_bindgen(method, setter = "ssrc")]
174 pub fn set_ssrc(this: &RtcOutboundRtpStreamStats, val: &str);
175 #[doc = "Get the `transportId` field of this object."]
176 #[doc = ""]
177 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
178 #[wasm_bindgen(method, getter = "transportId")]
179 pub fn get_transport_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>;
180 #[doc = "Change the `transportId` field of this object."]
181 #[doc = ""]
182 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
183 #[wasm_bindgen(method, setter = "transportId")]
184 pub fn set_transport_id(this: &RtcOutboundRtpStreamStats, val: &str);
185 #[doc = "Get the `bytesSent` field of this object."]
186 #[doc = ""]
187 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
188 #[wasm_bindgen(method, getter = "bytesSent")]
189 pub fn get_bytes_sent(this: &RtcOutboundRtpStreamStats) -> Option<f64>;
190 #[doc = "Change the `bytesSent` field of this object."]
191 #[doc = ""]
192 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
193 #[wasm_bindgen(method, setter = "bytesSent")]
194 pub fn set_bytes_sent(this: &RtcOutboundRtpStreamStats, val: f64);
195 #[doc = "Get the `droppedFrames` field of this object."]
196 #[doc = ""]
197 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
198 #[wasm_bindgen(method, getter = "droppedFrames")]
199 pub fn get_dropped_frames(this: &RtcOutboundRtpStreamStats) -> Option<u32>;
200 #[doc = "Change the `droppedFrames` field of this object."]
201 #[doc = ""]
202 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
203 #[wasm_bindgen(method, setter = "droppedFrames")]
204 pub fn set_dropped_frames(this: &RtcOutboundRtpStreamStats, val: u32);
205 #[doc = "Get the `framesEncoded` field of this object."]
206 #[doc = ""]
207 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
208 #[wasm_bindgen(method, getter = "framesEncoded")]
209 pub fn get_frames_encoded(this: &RtcOutboundRtpStreamStats) -> Option<u32>;
210 #[doc = "Change the `framesEncoded` field of this object."]
211 #[doc = ""]
212 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
213 #[wasm_bindgen(method, setter = "framesEncoded")]
214 pub fn set_frames_encoded(this: &RtcOutboundRtpStreamStats, val: u32);
215 #[doc = "Get the `packetsSent` field of this object."]
216 #[doc = ""]
217 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
218 #[wasm_bindgen(method, getter = "packetsSent")]
219 pub fn get_packets_sent(this: &RtcOutboundRtpStreamStats) -> Option<u32>;
220 #[doc = "Change the `packetsSent` field of this object."]
221 #[doc = ""]
222 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
223 #[wasm_bindgen(method, setter = "packetsSent")]
224 pub fn set_packets_sent(this: &RtcOutboundRtpStreamStats, val: u32);
225 #[doc = "Get the `targetBitrate` field of this object."]
226 #[doc = ""]
227 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
228 #[wasm_bindgen(method, getter = "targetBitrate")]
229 pub fn get_target_bitrate(this: &RtcOutboundRtpStreamStats) -> Option<f64>;
230 #[doc = "Change the `targetBitrate` field of this object."]
231 #[doc = ""]
232 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
233 #[wasm_bindgen(method, setter = "targetBitrate")]
234 pub fn set_target_bitrate(this: &RtcOutboundRtpStreamStats, val: f64);
235}
236impl RtcOutboundRtpStreamStats {
237 #[doc = "Construct a new `RtcOutboundRtpStreamStats`."]
238 #[doc = ""]
239 #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"]
240 pub fn new() -> Self {
241 #[allow(unused_mut)]
242 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
243 ret
244 }
245 #[deprecated = "Use `set_id()` instead."]
246 pub fn id(&mut self, val: &str) -> &mut Self {
247 self.set_id(val);
248 self
249 }
250 #[deprecated = "Use `set_timestamp()` instead."]
251 pub fn timestamp(&mut self, val: f64) -> &mut Self {
252 self.set_timestamp(val);
253 self
254 }
255 #[cfg(feature = "RtcStatsType")]
256 #[deprecated = "Use `set_type()` instead."]
257 pub fn type_(&mut self, val: RtcStatsType) -> &mut Self {
258 self.set_type(val);
259 self
260 }
261 #[deprecated = "Use `set_bitrate_mean()` instead."]
262 pub fn bitrate_mean(&mut self, val: f64) -> &mut Self {
263 self.set_bitrate_mean(val);
264 self
265 }
266 #[deprecated = "Use `set_bitrate_std_dev()` instead."]
267 pub fn bitrate_std_dev(&mut self, val: f64) -> &mut Self {
268 self.set_bitrate_std_dev(val);
269 self
270 }
271 #[deprecated = "Use `set_codec_id()` instead."]
272 pub fn codec_id(&mut self, val: &str) -> &mut Self {
273 self.set_codec_id(val);
274 self
275 }
276 #[deprecated = "Use `set_fir_count()` instead."]
277 pub fn fir_count(&mut self, val: u32) -> &mut Self {
278 self.set_fir_count(val);
279 self
280 }
281 #[deprecated = "Use `set_framerate_mean()` instead."]
282 pub fn framerate_mean(&mut self, val: f64) -> &mut Self {
283 self.set_framerate_mean(val);
284 self
285 }
286 #[deprecated = "Use `set_framerate_std_dev()` instead."]
287 pub fn framerate_std_dev(&mut self, val: f64) -> &mut Self {
288 self.set_framerate_std_dev(val);
289 self
290 }
291 #[deprecated = "Use `set_is_remote()` instead."]
292 pub fn is_remote(&mut self, val: bool) -> &mut Self {
293 self.set_is_remote(val);
294 self
295 }
296 #[deprecated = "Use `set_media_track_id()` instead."]
297 pub fn media_track_id(&mut self, val: &str) -> &mut Self {
298 self.set_media_track_id(val);
299 self
300 }
301 #[deprecated = "Use `set_media_type()` instead."]
302 pub fn media_type(&mut self, val: &str) -> &mut Self {
303 self.set_media_type(val);
304 self
305 }
306 #[deprecated = "Use `set_nack_count()` instead."]
307 pub fn nack_count(&mut self, val: u32) -> &mut Self {
308 self.set_nack_count(val);
309 self
310 }
311 #[deprecated = "Use `set_pli_count()` instead."]
312 pub fn pli_count(&mut self, val: u32) -> &mut Self {
313 self.set_pli_count(val);
314 self
315 }
316 #[deprecated = "Use `set_remote_id()` instead."]
317 pub fn remote_id(&mut self, val: &str) -> &mut Self {
318 self.set_remote_id(val);
319 self
320 }
321 #[deprecated = "Use `set_ssrc()` instead."]
322 pub fn ssrc(&mut self, val: &str) -> &mut Self {
323 self.set_ssrc(val);
324 self
325 }
326 #[deprecated = "Use `set_transport_id()` instead."]
327 pub fn transport_id(&mut self, val: &str) -> &mut Self {
328 self.set_transport_id(val);
329 self
330 }
331 #[deprecated = "Use `set_bytes_sent()` instead."]
332 pub fn bytes_sent(&mut self, val: f64) -> &mut Self {
333 self.set_bytes_sent(val);
334 self
335 }
336 #[deprecated = "Use `set_dropped_frames()` instead."]
337 pub fn dropped_frames(&mut self, val: u32) -> &mut Self {
338 self.set_dropped_frames(val);
339 self
340 }
341 #[deprecated = "Use `set_frames_encoded()` instead."]
342 pub fn frames_encoded(&mut self, val: u32) -> &mut Self {
343 self.set_frames_encoded(val);
344 self
345 }
346 #[deprecated = "Use `set_packets_sent()` instead."]
347 pub fn packets_sent(&mut self, val: u32) -> &mut Self {
348 self.set_packets_sent(val);
349 self
350 }
351 #[deprecated = "Use `set_target_bitrate()` instead."]
352 pub fn target_bitrate(&mut self, val: f64) -> &mut Self {
353 self.set_target_bitrate(val);
354 self
355 }
356}
357impl Default for RtcOutboundRtpStreamStats {
358 fn default() -> Self {
359 Self::new()
360 }
361}