web_sys/features/
gen_VideoTrack.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "VideoTrack",
10 typescript_type = "VideoTrack"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `VideoTrack` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"]
18 pub type VideoTrack;
19 #[wasm_bindgen(method, getter, js_class = "VideoTrack", js_name = "id")]
20 #[doc = "Getter for the `id` field of this object."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/id)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"]
25 pub fn id(this: &VideoTrack) -> ::alloc::string::String;
26 #[wasm_bindgen(method, getter, js_class = "VideoTrack", js_name = "kind")]
27 #[doc = "Getter for the `kind` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/kind)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"]
32 pub fn kind(this: &VideoTrack) -> ::alloc::string::String;
33 #[wasm_bindgen(method, getter, js_class = "VideoTrack", js_name = "label")]
34 #[doc = "Getter for the `label` field of this object."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/label)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"]
39 pub fn label(this: &VideoTrack) -> ::alloc::string::String;
40 #[wasm_bindgen(method, getter, js_class = "VideoTrack", js_name = "language")]
41 #[doc = "Getter for the `language` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/language)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"]
46 pub fn language(this: &VideoTrack) -> ::alloc::string::String;
47 #[wasm_bindgen(method, getter, js_class = "VideoTrack", js_name = "selected")]
48 #[doc = "Getter for the `selected` field of this object."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/selected)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"]
53 pub fn selected(this: &VideoTrack) -> bool;
54 #[wasm_bindgen(method, setter, js_class = "VideoTrack", js_name = "selected")]
55 #[doc = "Setter for the `selected` field of this object."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/selected)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"]
60 pub fn set_selected(this: &VideoTrack, value: bool);
61 #[cfg(feature = "SourceBuffer")]
62 #[wasm_bindgen(method, getter, js_class = "VideoTrack", js_name = "sourceBuffer")]
63 #[doc = "Getter for the `sourceBuffer` field of this object."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/sourceBuffer)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `VideoTrack`*"]
68 pub fn source_buffer(this: &VideoTrack) -> Option<SourceBuffer>;
69}