web_sys/features/
gen_RtcEncodedVideoFrame.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(
9 extends = "::js_sys::Object",
10 js_name = "RTCEncodedVideoFrame",
11 typescript_type = "RTCEncodedVideoFrame"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `RtcEncodedVideoFrame` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedVideoFrame)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`*"]
19 #[doc = ""]
20 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22 pub type RtcEncodedVideoFrame;
23 #[cfg(web_sys_unstable_apis)]
24 #[cfg(feature = "RtcEncodedVideoFrameType")]
25 #[wasm_bindgen(method, getter, js_class = "RTCEncodedVideoFrame", js_name = "type")]
26 #[doc = "Getter for the `type` field of this object."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedVideoFrame/type)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`, `RtcEncodedVideoFrameType`*"]
31 #[doc = ""]
32 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
33 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
34 pub fn type_(this: &RtcEncodedVideoFrame) -> RtcEncodedVideoFrameType;
35 #[cfg(web_sys_unstable_apis)]
36 #[wasm_bindgen(method, getter, js_class = "RTCEncodedVideoFrame", js_name = "data")]
37 #[doc = "Getter for the `data` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedVideoFrame/data)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`*"]
42 #[doc = ""]
43 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
44 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
45 pub fn data(this: &RtcEncodedVideoFrame) -> ::js_sys::ArrayBuffer;
46 #[cfg(web_sys_unstable_apis)]
47 #[wasm_bindgen(method, setter, js_class = "RTCEncodedVideoFrame", js_name = "data")]
48 #[doc = "Setter for the `data` field of this object."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedVideoFrame/data)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`*"]
53 #[doc = ""]
54 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
55 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
56 pub fn set_data(this: &RtcEncodedVideoFrame, value: &::js_sys::ArrayBuffer);
57 #[cfg(web_sys_unstable_apis)]
58 #[wasm_bindgen(catch, constructor, js_class = "RTCEncodedVideoFrame")]
59 #[doc = "The `new RtcEncodedVideoFrame(..)` constructor, creating a new instance of `RtcEncodedVideoFrame`."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedVideoFrame/RTCEncodedVideoFrame)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`*"]
64 #[doc = ""]
65 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
66 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
67 pub fn new(original_frame: &RtcEncodedVideoFrame) -> Result<RtcEncodedVideoFrame, JsValue>;
68 #[cfg(web_sys_unstable_apis)]
69 #[cfg(feature = "RtcEncodedVideoFrameOptions")]
70 #[wasm_bindgen(catch, constructor, js_class = "RTCEncodedVideoFrame")]
71 #[doc = "The `new RtcEncodedVideoFrame(..)` constructor, creating a new instance of `RtcEncodedVideoFrame`."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedVideoFrame/RTCEncodedVideoFrame)"]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`, `RtcEncodedVideoFrameOptions`*"]
76 #[doc = ""]
77 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
78 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
79 pub fn new_with_options(
80 original_frame: &RtcEncodedVideoFrame,
81 options: &RtcEncodedVideoFrameOptions,
82 ) -> Result<RtcEncodedVideoFrame, JsValue>;
83 #[cfg(web_sys_unstable_apis)]
84 #[cfg(feature = "RtcEncodedVideoFrameMetadata")]
85 #[wasm_bindgen(method, js_class = "RTCEncodedVideoFrame", js_name = "getMetadata")]
86 #[doc = "The `getMetadata()` method."]
87 #[doc = ""]
88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedVideoFrame/getMetadata)"]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedVideoFrame`, `RtcEncodedVideoFrameMetadata`*"]
91 #[doc = ""]
92 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
93 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
94 pub fn get_metadata(this: &RtcEncodedVideoFrame) -> RtcEncodedVideoFrameMetadata;
95}