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