Skip to main content

web_sys/features/
gen_RtcRtpScriptTransformer.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    #[wasm_bindgen(
9        extends = "EventTarget",
10        extends = "::js_sys::Object",
11        js_name = "RTCRtpScriptTransformer",
12        typescript_type = "RTCRtpScriptTransformer"
13    )]
14    #[derive(Debug, Clone, PartialEq, Eq)]
15    #[doc = "The `RtcRtpScriptTransformer` class."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
20    #[doc = ""]
21    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
22    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
23    pub type RtcRtpScriptTransformer;
24    #[cfg(web_sys_unstable_apis)]
25    #[cfg(feature = "ReadableStream")]
26    #[wasm_bindgen(
27        method,
28        getter,
29        js_class = "RTCRtpScriptTransformer",
30        js_name = "readable"
31    )]
32    #[doc = "Getter for the `readable` field of this object."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/readable)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `RtcRtpScriptTransformer`*"]
37    #[doc = ""]
38    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
40    pub fn readable(this: &RtcRtpScriptTransformer) -> ReadableStream;
41    #[cfg(web_sys_unstable_apis)]
42    #[cfg(feature = "WritableStream")]
43    #[wasm_bindgen(
44        method,
45        getter,
46        js_class = "RTCRtpScriptTransformer",
47        js_name = "writable"
48    )]
49    #[doc = "Getter for the `writable` field of this object."]
50    #[doc = ""]
51    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/writable)"]
52    #[doc = ""]
53    #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`, `WritableStream`*"]
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 writable(this: &RtcRtpScriptTransformer) -> WritableStream;
58    #[cfg(web_sys_unstable_apis)]
59    #[wasm_bindgen(
60        method,
61        getter,
62        js_class = "RTCRtpScriptTransformer",
63        js_name = "onkeyframerequest"
64    )]
65    #[doc = "Getter for the `onkeyframerequest` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/onkeyframerequest)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
70    #[doc = ""]
71    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
72    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
73    pub fn onkeyframerequest(this: &RtcRtpScriptTransformer) -> Option<::js_sys::Function>;
74    #[cfg(web_sys_unstable_apis)]
75    #[wasm_bindgen(
76        method,
77        setter,
78        js_class = "RTCRtpScriptTransformer",
79        js_name = "onkeyframerequest"
80    )]
81    #[doc = "Setter for the `onkeyframerequest` field of this object."]
82    #[doc = ""]
83    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/onkeyframerequest)"]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
86    #[doc = ""]
87    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
88    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
89    pub fn set_onkeyframerequest(
90        this: &RtcRtpScriptTransformer,
91        value: Option<&::js_sys::Function>,
92    );
93    #[cfg(web_sys_unstable_apis)]
94    #[wasm_bindgen(
95        method,
96        getter,
97        js_class = "RTCRtpScriptTransformer",
98        js_name = "options"
99    )]
100    #[doc = "Getter for the `options` field of this object."]
101    #[doc = ""]
102    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/options)"]
103    #[doc = ""]
104    #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
105    #[doc = ""]
106    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
107    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
108    pub fn options(this: &RtcRtpScriptTransformer) -> ::wasm_bindgen::JsValue;
109    #[cfg(web_sys_unstable_apis)]
110    #[wasm_bindgen(
111        method,
112        js_class = "RTCRtpScriptTransformer",
113        js_name = "generateKeyFrame"
114    )]
115    #[doc = "The `generateKeyFrame()` method."]
116    #[doc = ""]
117    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame)"]
118    #[doc = ""]
119    #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
120    #[doc = ""]
121    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
122    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
123    pub fn generate_key_frame(
124        this: &RtcRtpScriptTransformer,
125    ) -> ::js_sys::Promise<::js_sys::Number>;
126    #[cfg(web_sys_unstable_apis)]
127    #[wasm_bindgen(
128        method,
129        js_class = "RTCRtpScriptTransformer",
130        js_name = "generateKeyFrame"
131    )]
132    #[doc = "The `generateKeyFrame()` method."]
133    #[doc = ""]
134    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame)"]
135    #[doc = ""]
136    #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
137    #[doc = ""]
138    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
139    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
140    pub fn generate_key_frame_with_rid(
141        this: &RtcRtpScriptTransformer,
142        rid: &str,
143    ) -> ::js_sys::Promise<::js_sys::Number>;
144    #[cfg(web_sys_unstable_apis)]
145    #[wasm_bindgen(
146        method,
147        js_class = "RTCRtpScriptTransformer",
148        js_name = "sendKeyFrameRequest"
149    )]
150    #[doc = "The `sendKeyFrameRequest()` method."]
151    #[doc = ""]
152    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest)"]
153    #[doc = ""]
154    #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
155    #[doc = ""]
156    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
157    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
158    pub fn send_key_frame_request(
159        this: &RtcRtpScriptTransformer,
160    ) -> ::js_sys::Promise<::js_sys::Undefined>;
161}