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