maxcountryman_web_sys/features/
gen_HtmlVideoElement.rs1#![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 = HTMLVideoElement , typescript_type = "HTMLVideoElement")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `HtmlVideoElement` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"]
13 pub type HtmlVideoElement;
14 # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = width)]
15 #[doc = "Getter for the `width` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/width)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"]
20 pub fn width(this: &HtmlVideoElement) -> u32;
21 # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = width)]
22 #[doc = "Setter for the `width` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/width)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"]
27 pub fn set_width(this: &HtmlVideoElement, value: u32);
28 # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = height)]
29 #[doc = "Getter for the `height` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/height)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"]
34 pub fn height(this: &HtmlVideoElement) -> u32;
35 # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = height)]
36 #[doc = "Setter for the `height` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/height)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"]
41 pub fn set_height(this: &HtmlVideoElement, value: u32);
42 # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = videoWidth)]
43 #[doc = "Getter for the `videoWidth` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/videoWidth)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"]
48 pub fn video_width(this: &HtmlVideoElement) -> u32;
49 # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = videoHeight)]
50 #[doc = "Getter for the `videoHeight` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/videoHeight)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"]
55 pub fn video_height(this: &HtmlVideoElement) -> u32;
56 # [wasm_bindgen (structural , method , getter , js_class = "HTMLVideoElement" , js_name = poster)]
57 #[doc = "Getter for the `poster` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/poster)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"]
62 pub fn poster(this: &HtmlVideoElement) -> String;
63 # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = poster)]
64 #[doc = "Setter for the `poster` field of this object."]
65 #[doc = ""]
66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/poster)"]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"]
69 pub fn set_poster(this: &HtmlVideoElement, value: &str);
70 #[cfg(feature = "VideoPlaybackQuality")]
71 # [wasm_bindgen (method , structural , js_class = "HTMLVideoElement" , js_name = getVideoPlaybackQuality)]
72 #[doc = "The `getVideoPlaybackQuality()` method."]
73 #[doc = ""]
74 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality)"]
75 #[doc = ""]
76 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `VideoPlaybackQuality`*"]
77 pub fn get_video_playback_quality(this: &HtmlVideoElement) -> VideoPlaybackQuality;
78}