web_sys/features/
gen_RtcEncodedAudioFrame.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 = "RTCEncodedAudioFrame",
11 typescript_type = "RTCEncodedAudioFrame"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `RtcEncodedAudioFrame` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedAudioFrame)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`*"]
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 RtcEncodedAudioFrame;
23 #[cfg(web_sys_unstable_apis)]
24 #[wasm_bindgen(method, getter, js_class = "RTCEncodedAudioFrame", js_name = "data")]
25 #[doc = "Getter for the `data` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedAudioFrame/data)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33 pub fn data(this: &RtcEncodedAudioFrame) -> ::js_sys::ArrayBuffer;
34 #[cfg(web_sys_unstable_apis)]
35 #[wasm_bindgen(method, setter, js_class = "RTCEncodedAudioFrame", js_name = "data")]
36 #[doc = "Setter for the `data` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedAudioFrame/data)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
44 pub fn set_data(this: &RtcEncodedAudioFrame, value: &::js_sys::ArrayBuffer);
45 #[cfg(web_sys_unstable_apis)]
46 #[wasm_bindgen(catch, constructor, js_class = "RTCEncodedAudioFrame")]
47 #[doc = "The `new RtcEncodedAudioFrame(..)` constructor, creating a new instance of `RtcEncodedAudioFrame`."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedAudioFrame/RTCEncodedAudioFrame)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`*"]
52 #[doc = ""]
53 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
54 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
55 pub fn new(original_frame: &RtcEncodedAudioFrame) -> Result<RtcEncodedAudioFrame, JsValue>;
56 #[cfg(web_sys_unstable_apis)]
57 #[cfg(feature = "RtcEncodedAudioFrameOptions")]
58 #[wasm_bindgen(catch, constructor, js_class = "RTCEncodedAudioFrame")]
59 #[doc = "The `new RtcEncodedAudioFrame(..)` constructor, creating a new instance of `RtcEncodedAudioFrame`."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedAudioFrame/RTCEncodedAudioFrame)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`, `RtcEncodedAudioFrameOptions`*"]
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_with_options(
68 original_frame: &RtcEncodedAudioFrame,
69 options: &RtcEncodedAudioFrameOptions,
70 ) -> Result<RtcEncodedAudioFrame, JsValue>;
71 #[cfg(web_sys_unstable_apis)]
72 #[cfg(feature = "RtcEncodedAudioFrameMetadata")]
73 #[wasm_bindgen(method, js_class = "RTCEncodedAudioFrame", js_name = "getMetadata")]
74 #[doc = "The `getMetadata()` method."]
75 #[doc = ""]
76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCEncodedAudioFrame/getMetadata)"]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `RtcEncodedAudioFrame`, `RtcEncodedAudioFrameMetadata`*"]
79 #[doc = ""]
80 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
81 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
82 pub fn get_metadata(this: &RtcEncodedAudioFrame) -> RtcEncodedAudioFrameMetadata;
83}