web_sys/features/
gen_AudioTrack.rs

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