web_sys/features/
gen_RtcRtpScriptTransformer.rs1#![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 (extends = EventTarget , extends = :: js_sys :: Object , js_name = RTCRtpScriptTransformer , typescript_type = "RTCRtpScriptTransformer")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `RtcRtpScriptTransformer` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
15 #[doc = ""]
16 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
18 pub type RtcRtpScriptTransformer;
19 #[cfg(web_sys_unstable_apis)]
20 #[cfg(feature = "ReadableStream")]
21 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpScriptTransformer" , js_name = readable)]
22 #[doc = "Getter for the `readable` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/readable)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `RtcRtpScriptTransformer`*"]
27 #[doc = ""]
28 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
29 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
30 pub fn readable(this: &RtcRtpScriptTransformer) -> ReadableStream;
31 #[cfg(web_sys_unstable_apis)]
32 #[cfg(feature = "WritableStream")]
33 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpScriptTransformer" , js_name = writable)]
34 #[doc = "Getter for the `writable` field of this object."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/writable)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`, `WritableStream`*"]
39 #[doc = ""]
40 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
42 pub fn writable(this: &RtcRtpScriptTransformer) -> WritableStream;
43 #[cfg(web_sys_unstable_apis)]
44 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpScriptTransformer" , js_name = onkeyframerequest)]
45 #[doc = "Getter for the `onkeyframerequest` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/onkeyframerequest)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
50 #[doc = ""]
51 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
52 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
53 pub fn onkeyframerequest(this: &RtcRtpScriptTransformer) -> Option<::js_sys::Function>;
54 #[cfg(web_sys_unstable_apis)]
55 # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpScriptTransformer" , js_name = onkeyframerequest)]
56 #[doc = "Setter for the `onkeyframerequest` field of this object."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/onkeyframerequest)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
61 #[doc = ""]
62 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
63 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
64 pub fn set_onkeyframerequest(
65 this: &RtcRtpScriptTransformer,
66 value: Option<&::js_sys::Function>,
67 );
68 #[cfg(web_sys_unstable_apis)]
69 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpScriptTransformer" , js_name = options)]
70 #[doc = "Getter for the `options` field of this object."]
71 #[doc = ""]
72 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/options)"]
73 #[doc = ""]
74 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
75 #[doc = ""]
76 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
77 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
78 pub fn options(this: &RtcRtpScriptTransformer) -> ::wasm_bindgen::JsValue;
79 #[cfg(web_sys_unstable_apis)]
80 # [wasm_bindgen (method , structural , js_class = "RTCRtpScriptTransformer" , js_name = generateKeyFrame)]
81 #[doc = "The `generateKeyFrame()` method."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame)"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
89 pub fn generate_key_frame(this: &RtcRtpScriptTransformer) -> ::js_sys::Promise;
90 #[cfg(web_sys_unstable_apis)]
91 # [wasm_bindgen (method , structural , js_class = "RTCRtpScriptTransformer" , js_name = generateKeyFrame)]
92 #[doc = "The `generateKeyFrame()` method."]
93 #[doc = ""]
94 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame)"]
95 #[doc = ""]
96 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
97 #[doc = ""]
98 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
99 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
100 pub fn generate_key_frame_with_rid(
101 this: &RtcRtpScriptTransformer,
102 rid: &str,
103 ) -> ::js_sys::Promise;
104 #[cfg(web_sys_unstable_apis)]
105 # [wasm_bindgen (method , structural , js_class = "RTCRtpScriptTransformer" , js_name = sendKeyFrameRequest)]
106 #[doc = "The `sendKeyFrameRequest()` method."]
107 #[doc = ""]
108 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest)"]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransformer`*"]
111 #[doc = ""]
112 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
113 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
114 pub fn send_key_frame_request(this: &RtcRtpScriptTransformer) -> ::js_sys::Promise;
115}