web_sys/features/
gen_RtcRtpReceiver.rs

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 = RTCRtpReceiver , typescript_type = "RTCRtpReceiver")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `RtcRtpReceiver` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"]
14    pub type RtcRtpReceiver;
15    #[cfg(feature = "MediaStreamTrack")]
16    # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpReceiver" , 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/RTCRtpReceiver/track)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpReceiver`*"]
22    pub fn track(this: &RtcRtpReceiver) -> MediaStreamTrack;
23    #[cfg(web_sys_unstable_apis)]
24    # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpReceiver" , js_name = jitterBufferTarget)]
25    #[doc = "Getter for the `jitterBufferTarget` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"]
30    #[doc = ""]
31    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
33    pub fn jitter_buffer_target(this: &RtcRtpReceiver) -> Option<f64>;
34    #[cfg(web_sys_unstable_apis)]
35    # [wasm_bindgen (structural , catch , method , setter , js_class = "RTCRtpReceiver" , js_name = jitterBufferTarget)]
36    #[doc = "Setter for the `jitterBufferTarget` field of this object."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"]
41    #[doc = ""]
42    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
44    pub fn set_jitter_buffer_target(
45        this: &RtcRtpReceiver,
46        value: Option<f64>,
47    ) -> Result<(), JsValue>;
48    #[cfg(web_sys_unstable_apis)]
49    # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpReceiver" , js_name = transform)]
50    #[doc = "Getter for the `transform` field of this object."]
51    #[doc = ""]
52    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/transform)"]
53    #[doc = ""]
54    #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"]
55    #[doc = ""]
56    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
57    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
58    pub fn transform(this: &RtcRtpReceiver) -> Option<::js_sys::Object>;
59    #[cfg(web_sys_unstable_apis)]
60    #[cfg(feature = "SFrameTransform")]
61    # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpReceiver" , js_name = transform)]
62    #[doc = "Setter for the `transform` field of this object."]
63    #[doc = ""]
64    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/transform)"]
65    #[doc = ""]
66    #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `SFrameTransform`*"]
67    #[doc = ""]
68    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
69    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
70    pub fn set_transform_opt_s_frame_transform(
71        this: &RtcRtpReceiver,
72        value: Option<&SFrameTransform>,
73    );
74    #[cfg(web_sys_unstable_apis)]
75    #[cfg(feature = "RtcRtpScriptTransform")]
76    # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpReceiver" , js_name = transform)]
77    #[doc = "Setter for the `transform` field of this object."]
78    #[doc = ""]
79    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/transform)"]
80    #[doc = ""]
81    #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcRtpScriptTransform`*"]
82    #[doc = ""]
83    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
84    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
85    pub fn set_transform_opt_rtc_rtp_script_transform(
86        this: &RtcRtpReceiver,
87        value: Option<&RtcRtpScriptTransform>,
88    );
89    #[cfg(feature = "RtcRtpCapabilities")]
90    # [wasm_bindgen (static_method_of = RtcRtpReceiver , js_class = "RTCRtpReceiver" , js_name = getCapabilities)]
91    #[doc = "The `getCapabilities()` method."]
92    #[doc = ""]
93    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getCapabilities_static)"]
94    #[doc = ""]
95    #[doc = "*This API requires the following crate features to be activated: `RtcRtpCapabilities`, `RtcRtpReceiver`*"]
96    pub fn get_capabilities(kind: &str) -> Option<RtcRtpCapabilities>;
97    # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getContributingSources)]
98    #[doc = "The `getContributingSources()` method."]
99    #[doc = ""]
100    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getContributingSources)"]
101    #[doc = ""]
102    #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"]
103    pub fn get_contributing_sources(this: &RtcRtpReceiver) -> ::js_sys::Array;
104    # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getStats)]
105    #[doc = "The `getStats()` method."]
106    #[doc = ""]
107    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getStats)"]
108    #[doc = ""]
109    #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"]
110    pub fn get_stats(this: &RtcRtpReceiver) -> ::js_sys::Promise;
111    # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getSynchronizationSources)]
112    #[doc = "The `getSynchronizationSources()` method."]
113    #[doc = ""]
114    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getSynchronizationSources)"]
115    #[doc = ""]
116    #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"]
117    pub fn get_synchronization_sources(this: &RtcRtpReceiver) -> ::js_sys::Array;
118}