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