maxcountryman_web_sys/features/
gen_HtmlAudioElement.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = HtmlMediaElement , extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLAudioElement , typescript_type = "HTMLAudioElement")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `HtmlAudioElement` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `HtmlAudioElement`*"]
13    pub type HtmlAudioElement;
14    #[wasm_bindgen(catch, constructor, js_class = "Audio")]
15    #[doc = "The `new HtmlAudioElement(..)` constructor, creating a new instance of `HtmlAudioElement`."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement/HTMLAudioElement)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `HtmlAudioElement`*"]
20    pub fn new() -> Result<HtmlAudioElement, JsValue>;
21    #[wasm_bindgen(catch, constructor, js_class = "Audio")]
22    #[doc = "The `new HtmlAudioElement(..)` constructor, creating a new instance of `HtmlAudioElement`."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement/HTMLAudioElement)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `HtmlAudioElement`*"]
27    pub fn new_with_src(src: &str) -> Result<HtmlAudioElement, JsValue>;
28}