web_sys/features/
gen_VideoTrackList.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = VideoTrackList , typescript_type = "VideoTrackList")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `VideoTrackList` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"]
14 pub type VideoTrackList;
15 # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = length)]
16 #[doc = "Getter for the `length` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/length)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"]
21 pub fn length(this: &VideoTrackList) -> u32;
22 # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = selectedIndex)]
23 #[doc = "Getter for the `selectedIndex` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/selectedIndex)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"]
28 pub fn selected_index(this: &VideoTrackList) -> i32;
29 # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = onchange)]
30 #[doc = "Getter for the `onchange` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onchange)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"]
35 pub fn onchange(this: &VideoTrackList) -> Option<::js_sys::Function>;
36 # [wasm_bindgen (structural , method , setter , js_class = "VideoTrackList" , js_name = onchange)]
37 #[doc = "Setter for the `onchange` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onchange)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"]
42 pub fn set_onchange(this: &VideoTrackList, value: Option<&::js_sys::Function>);
43 # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = onaddtrack)]
44 #[doc = "Getter for the `onaddtrack` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onaddtrack)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"]
49 pub fn onaddtrack(this: &VideoTrackList) -> Option<::js_sys::Function>;
50 # [wasm_bindgen (structural , method , setter , js_class = "VideoTrackList" , js_name = onaddtrack)]
51 #[doc = "Setter for the `onaddtrack` field of this object."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onaddtrack)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"]
56 pub fn set_onaddtrack(this: &VideoTrackList, value: Option<&::js_sys::Function>);
57 # [wasm_bindgen (structural , method , getter , js_class = "VideoTrackList" , js_name = onremovetrack)]
58 #[doc = "Getter for the `onremovetrack` field of this object."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onremovetrack)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"]
63 pub fn onremovetrack(this: &VideoTrackList) -> Option<::js_sys::Function>;
64 # [wasm_bindgen (structural , method , setter , js_class = "VideoTrackList" , js_name = onremovetrack)]
65 #[doc = "Setter for the `onremovetrack` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onremovetrack)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"]
70 pub fn set_onremovetrack(this: &VideoTrackList, value: Option<&::js_sys::Function>);
71 #[cfg(feature = "VideoTrack")]
72 # [wasm_bindgen (method , structural , js_class = "VideoTrackList" , js_name = getTrackById)]
73 #[doc = "The `getTrackById()` method."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/getTrackById)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `VideoTrack`, `VideoTrackList`*"]
78 pub fn get_track_by_id(this: &VideoTrackList, id: &str) -> Option<VideoTrack>;
79 #[cfg(feature = "VideoTrack")]
80 #[wasm_bindgen(method, structural, js_class = "VideoTrackList", indexing_getter)]
81 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
82 #[doc = ""]
83 #[doc = ""]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `VideoTrack`, `VideoTrackList`*"]
86 pub fn get(this: &VideoTrackList, index: u32) -> Option<VideoTrack>;
87}