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 = RTCInboundRTPStreamStats)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `RtcInboundRtpStreamStats` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
12 pub type RtcInboundRtpStreamStats;
13 #[doc = "Get the `id` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
16 #[wasm_bindgen(method, getter = "id")]
17 pub fn get_id(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
21 #[wasm_bindgen(method, setter = "id")]
22 pub fn set_id(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
26 #[wasm_bindgen(method, getter = "timestamp")]
27 pub fn get_timestamp(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
31 #[wasm_bindgen(method, setter = "timestamp")]
32 pub fn set_timestamp(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`, `RtcStatsType`*"]
37 #[wasm_bindgen(method, getter = "type")]
38 pub fn get_type(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`, `RtcStatsType`*"]
43 #[wasm_bindgen(method, setter = "type")]
44 pub fn set_type(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
48 #[wasm_bindgen(method, getter = "bitrateMean")]
49 pub fn get_bitrate_mean(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
53 #[wasm_bindgen(method, setter = "bitrateMean")]
54 pub fn set_bitrate_mean(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
58 #[wasm_bindgen(method, getter = "bitrateStdDev")]
59 pub fn get_bitrate_std_dev(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
63 #[wasm_bindgen(method, setter = "bitrateStdDev")]
64 pub fn set_bitrate_std_dev(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
68 #[wasm_bindgen(method, getter = "codecId")]
69 pub fn get_codec_id(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
73 #[wasm_bindgen(method, setter = "codecId")]
74 pub fn set_codec_id(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
78 #[wasm_bindgen(method, getter = "firCount")]
79 pub fn get_fir_count(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
83 #[wasm_bindgen(method, setter = "firCount")]
84 pub fn set_fir_count(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
88 #[wasm_bindgen(method, getter = "framerateMean")]
89 pub fn get_framerate_mean(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
93 #[wasm_bindgen(method, setter = "framerateMean")]
94 pub fn set_framerate_mean(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
98 #[wasm_bindgen(method, getter = "framerateStdDev")]
99 pub fn get_framerate_std_dev(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
103 #[wasm_bindgen(method, setter = "framerateStdDev")]
104 pub fn set_framerate_std_dev(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
108 #[wasm_bindgen(method, getter = "isRemote")]
109 pub fn get_is_remote(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
113 #[wasm_bindgen(method, setter = "isRemote")]
114 pub fn set_is_remote(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
118 #[wasm_bindgen(method, getter = "mediaTrackId")]
119 pub fn get_media_track_id(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
123 #[wasm_bindgen(method, setter = "mediaTrackId")]
124 pub fn set_media_track_id(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
128 #[wasm_bindgen(method, getter = "mediaType")]
129 pub fn get_media_type(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
133 #[wasm_bindgen(method, setter = "mediaType")]
134 pub fn set_media_type(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
138 #[wasm_bindgen(method, getter = "nackCount")]
139 pub fn get_nack_count(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
143 #[wasm_bindgen(method, setter = "nackCount")]
144 pub fn set_nack_count(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
148 #[wasm_bindgen(method, getter = "pliCount")]
149 pub fn get_pli_count(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
153 #[wasm_bindgen(method, setter = "pliCount")]
154 pub fn set_pli_count(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
158 #[wasm_bindgen(method, getter = "remoteId")]
159 pub fn get_remote_id(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
163 #[wasm_bindgen(method, setter = "remoteId")]
164 pub fn set_remote_id(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
168 #[wasm_bindgen(method, getter = "ssrc")]
169 pub fn get_ssrc(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
173 #[wasm_bindgen(method, setter = "ssrc")]
174 pub fn set_ssrc(this: &RtcInboundRtpStreamStats, 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: `RtcInboundRtpStreamStats`*"]
178 #[wasm_bindgen(method, getter = "transportId")]
179 pub fn get_transport_id(this: &RtcInboundRtpStreamStats) -> 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: `RtcInboundRtpStreamStats`*"]
183 #[wasm_bindgen(method, setter = "transportId")]
184 pub fn set_transport_id(this: &RtcInboundRtpStreamStats, val: &str);
185 #[doc = "Get the `bytesReceived` field of this object."]
186 #[doc = ""]
187 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
188 #[wasm_bindgen(method, getter = "bytesReceived")]
189 pub fn get_bytes_received(this: &RtcInboundRtpStreamStats) -> Option<f64>;
190 #[doc = "Change the `bytesReceived` field of this object."]
191 #[doc = ""]
192 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
193 #[wasm_bindgen(method, setter = "bytesReceived")]
194 pub fn set_bytes_received(this: &RtcInboundRtpStreamStats, val: f64);
195 #[doc = "Get the `discardedPackets` field of this object."]
196 #[doc = ""]
197 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
198 #[wasm_bindgen(method, getter = "discardedPackets")]
199 pub fn get_discarded_packets(this: &RtcInboundRtpStreamStats) -> Option<u32>;
200 #[doc = "Change the `discardedPackets` field of this object."]
201 #[doc = ""]
202 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
203 #[wasm_bindgen(method, setter = "discardedPackets")]
204 pub fn set_discarded_packets(this: &RtcInboundRtpStreamStats, val: u32);
205 #[doc = "Get the `framesDecoded` field of this object."]
206 #[doc = ""]
207 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
208 #[wasm_bindgen(method, getter = "framesDecoded")]
209 pub fn get_frames_decoded(this: &RtcInboundRtpStreamStats) -> Option<u32>;
210 #[doc = "Change the `framesDecoded` field of this object."]
211 #[doc = ""]
212 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
213 #[wasm_bindgen(method, setter = "framesDecoded")]
214 pub fn set_frames_decoded(this: &RtcInboundRtpStreamStats, val: u32);
215 #[doc = "Get the `jitter` field of this object."]
216 #[doc = ""]
217 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
218 #[wasm_bindgen(method, getter = "jitter")]
219 pub fn get_jitter(this: &RtcInboundRtpStreamStats) -> Option<f64>;
220 #[doc = "Change the `jitter` field of this object."]
221 #[doc = ""]
222 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
223 #[wasm_bindgen(method, setter = "jitter")]
224 pub fn set_jitter(this: &RtcInboundRtpStreamStats, val: f64);
225 #[doc = "Get the `packetsLost` field of this object."]
226 #[doc = ""]
227 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
228 #[wasm_bindgen(method, getter = "packetsLost")]
229 pub fn get_packets_lost(this: &RtcInboundRtpStreamStats) -> Option<u32>;
230 #[doc = "Change the `packetsLost` field of this object."]
231 #[doc = ""]
232 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
233 #[wasm_bindgen(method, setter = "packetsLost")]
234 pub fn set_packets_lost(this: &RtcInboundRtpStreamStats, val: u32);
235 #[doc = "Get the `packetsReceived` field of this object."]
236 #[doc = ""]
237 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
238 #[wasm_bindgen(method, getter = "packetsReceived")]
239 pub fn get_packets_received(this: &RtcInboundRtpStreamStats) -> Option<u32>;
240 #[doc = "Change the `packetsReceived` field of this object."]
241 #[doc = ""]
242 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
243 #[wasm_bindgen(method, setter = "packetsReceived")]
244 pub fn set_packets_received(this: &RtcInboundRtpStreamStats, val: u32);
245 #[doc = "Get the `roundTripTime` field of this object."]
246 #[doc = ""]
247 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
248 #[wasm_bindgen(method, getter = "roundTripTime")]
249 pub fn get_round_trip_time(this: &RtcInboundRtpStreamStats) -> Option<i32>;
250 #[doc = "Change the `roundTripTime` field of this object."]
251 #[doc = ""]
252 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
253 #[wasm_bindgen(method, setter = "roundTripTime")]
254 pub fn set_round_trip_time(this: &RtcInboundRtpStreamStats, val: i32);
255}
256impl RtcInboundRtpStreamStats {
257 #[doc = "Construct a new `RtcInboundRtpStreamStats`."]
258 #[doc = ""]
259 #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"]
260 pub fn new() -> Self {
261 #[allow(unused_mut)]
262 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
263 ret
264 }
265 #[deprecated = "Use `set_id()` instead."]
266 pub fn id(&mut self, val: &str) -> &mut Self {
267 self.set_id(val);
268 self
269 }
270 #[deprecated = "Use `set_timestamp()` instead."]
271 pub fn timestamp(&mut self, val: f64) -> &mut Self {
272 self.set_timestamp(val);
273 self
274 }
275 #[cfg(feature = "RtcStatsType")]
276 #[deprecated = "Use `set_type()` instead."]
277 pub fn type_(&mut self, val: RtcStatsType) -> &mut Self {
278 self.set_type(val);
279 self
280 }
281 #[deprecated = "Use `set_bitrate_mean()` instead."]
282 pub fn bitrate_mean(&mut self, val: f64) -> &mut Self {
283 self.set_bitrate_mean(val);
284 self
285 }
286 #[deprecated = "Use `set_bitrate_std_dev()` instead."]
287 pub fn bitrate_std_dev(&mut self, val: f64) -> &mut Self {
288 self.set_bitrate_std_dev(val);
289 self
290 }
291 #[deprecated = "Use `set_codec_id()` instead."]
292 pub fn codec_id(&mut self, val: &str) -> &mut Self {
293 self.set_codec_id(val);
294 self
295 }
296 #[deprecated = "Use `set_fir_count()` instead."]
297 pub fn fir_count(&mut self, val: u32) -> &mut Self {
298 self.set_fir_count(val);
299 self
300 }
301 #[deprecated = "Use `set_framerate_mean()` instead."]
302 pub fn framerate_mean(&mut self, val: f64) -> &mut Self {
303 self.set_framerate_mean(val);
304 self
305 }
306 #[deprecated = "Use `set_framerate_std_dev()` instead."]
307 pub fn framerate_std_dev(&mut self, val: f64) -> &mut Self {
308 self.set_framerate_std_dev(val);
309 self
310 }
311 #[deprecated = "Use `set_is_remote()` instead."]
312 pub fn is_remote(&mut self, val: bool) -> &mut Self {
313 self.set_is_remote(val);
314 self
315 }
316 #[deprecated = "Use `set_media_track_id()` instead."]
317 pub fn media_track_id(&mut self, val: &str) -> &mut Self {
318 self.set_media_track_id(val);
319 self
320 }
321 #[deprecated = "Use `set_media_type()` instead."]
322 pub fn media_type(&mut self, val: &str) -> &mut Self {
323 self.set_media_type(val);
324 self
325 }
326 #[deprecated = "Use `set_nack_count()` instead."]
327 pub fn nack_count(&mut self, val: u32) -> &mut Self {
328 self.set_nack_count(val);
329 self
330 }
331 #[deprecated = "Use `set_pli_count()` instead."]
332 pub fn pli_count(&mut self, val: u32) -> &mut Self {
333 self.set_pli_count(val);
334 self
335 }
336 #[deprecated = "Use `set_remote_id()` instead."]
337 pub fn remote_id(&mut self, val: &str) -> &mut Self {
338 self.set_remote_id(val);
339 self
340 }
341 #[deprecated = "Use `set_ssrc()` instead."]
342 pub fn ssrc(&mut self, val: &str) -> &mut Self {
343 self.set_ssrc(val);
344 self
345 }
346 #[deprecated = "Use `set_transport_id()` instead."]
347 pub fn transport_id(&mut self, val: &str) -> &mut Self {
348 self.set_transport_id(val);
349 self
350 }
351 #[deprecated = "Use `set_bytes_received()` instead."]
352 pub fn bytes_received(&mut self, val: f64) -> &mut Self {
353 self.set_bytes_received(val);
354 self
355 }
356 #[deprecated = "Use `set_discarded_packets()` instead."]
357 pub fn discarded_packets(&mut self, val: u32) -> &mut Self {
358 self.set_discarded_packets(val);
359 self
360 }
361 #[deprecated = "Use `set_frames_decoded()` instead."]
362 pub fn frames_decoded(&mut self, val: u32) -> &mut Self {
363 self.set_frames_decoded(val);
364 self
365 }
366 #[deprecated = "Use `set_jitter()` instead."]
367 pub fn jitter(&mut self, val: f64) -> &mut Self {
368 self.set_jitter(val);
369 self
370 }
371 #[deprecated = "Use `set_packets_lost()` instead."]
372 pub fn packets_lost(&mut self, val: u32) -> &mut Self {
373 self.set_packets_lost(val);
374 self
375 }
376 #[deprecated = "Use `set_packets_received()` instead."]
377 pub fn packets_received(&mut self, val: u32) -> &mut Self {
378 self.set_packets_received(val);
379 self
380 }
381 #[deprecated = "Use `set_round_trip_time()` instead."]
382 pub fn round_trip_time(&mut self, val: i32) -> &mut Self {
383 self.set_round_trip_time(val);
384 self
385 }
386}
387impl Default for RtcInboundRtpStreamStats {
388 fn default() -> Self {
389 Self::new()
390 }
391}