Skip to main content

web_sys/features/
gen_AudioTrackList.rs

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