Skip to main content

web_sys/features/
gen_MediaStreamTrackProcessor.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 = "::js_sys::Object",
10        js_name = "MediaStreamTrackProcessor",
11        typescript_type = "MediaStreamTrackProcessor"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `MediaStreamTrackProcessor` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackProcessor)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackProcessor`*"]
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 MediaStreamTrackProcessor;
23    #[cfg(web_sys_unstable_apis)]
24    #[cfg(feature = "ReadableStream")]
25    #[wasm_bindgen(
26        method,
27        getter,
28        js_class = "MediaStreamTrackProcessor",
29        js_name = "readable"
30    )]
31    #[doc = "Getter for the `readable` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackProcessor/readable)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackProcessor`, `ReadableStream`*"]
36    #[doc = ""]
37    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
38    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
39    pub fn readable(this: &MediaStreamTrackProcessor) -> ReadableStream;
40    #[cfg(web_sys_unstable_apis)]
41    #[cfg(feature = "ReadableStream")]
42    #[wasm_bindgen(
43        method,
44        setter,
45        js_class = "MediaStreamTrackProcessor",
46        js_name = "readable"
47    )]
48    #[doc = "Setter for the `readable` field of this object."]
49    #[doc = ""]
50    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackProcessor/readable)"]
51    #[doc = ""]
52    #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackProcessor`, `ReadableStream`*"]
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_readable(this: &MediaStreamTrackProcessor, value: &ReadableStream);
57    #[cfg(web_sys_unstable_apis)]
58    #[cfg(feature = "MediaStreamTrackProcessorInit")]
59    #[wasm_bindgen(catch, constructor, js_class = "MediaStreamTrackProcessor")]
60    #[doc = "The `new MediaStreamTrackProcessor(..)` constructor, creating a new instance of `MediaStreamTrackProcessor`."]
61    #[doc = ""]
62    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackProcessor/MediaStreamTrackProcessor)"]
63    #[doc = ""]
64    #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackProcessor`, `MediaStreamTrackProcessorInit`*"]
65    #[doc = ""]
66    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
67    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
68    pub fn new(init: &MediaStreamTrackProcessorInit) -> Result<MediaStreamTrackProcessor, JsValue>;
69}