Struct web_sys::HtmlVideoElement
source · #[repr(transparent)]pub struct HtmlVideoElement { /* private fields */ }
Expand description
The HTMLVideoElement
object
This API requires the following crate features to be activated: HtmlVideoElement
Implementations§
source§impl HtmlVideoElement
impl HtmlVideoElement
sourcepub fn get_video_playback_quality(&self) -> VideoPlaybackQuality
pub fn get_video_playback_quality(&self) -> VideoPlaybackQuality
The getVideoPlaybackQuality()
method
This API requires the following crate features to be activated: HtmlVideoElement
, VideoPlaybackQuality
source§impl HtmlVideoElement
impl HtmlVideoElement
source§impl HtmlVideoElement
impl HtmlVideoElement
source§impl HtmlVideoElement
impl HtmlVideoElement
source§impl HtmlVideoElement
impl HtmlVideoElement
sourcepub fn set_height(&self, height: u32)
pub fn set_height(&self, height: u32)
The height
setter
This API requires the following crate features to be activated: HtmlVideoElement
source§impl HtmlVideoElement
impl HtmlVideoElement
sourcepub fn video_width(&self) -> u32
pub fn video_width(&self) -> u32
The videoWidth
getter
This API requires the following crate features to be activated: HtmlVideoElement
source§impl HtmlVideoElement
impl HtmlVideoElement
sourcepub fn video_height(&self) -> u32
pub fn video_height(&self) -> u32
The videoHeight
getter
This API requires the following crate features to be activated: HtmlVideoElement
source§impl HtmlVideoElement
impl HtmlVideoElement
source§impl HtmlVideoElement
impl HtmlVideoElement
sourcepub fn set_poster(&self, poster: &str)
pub fn set_poster(&self, poster: &str)
The poster
setter
This API requires the following crate features to be activated: HtmlVideoElement
Trait Implementations§
source§impl AsRef<Element> for HtmlVideoElement
impl AsRef<Element> for HtmlVideoElement
source§impl AsRef<EventTarget> for HtmlVideoElement
impl AsRef<EventTarget> for HtmlVideoElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<HtmlElement> for HtmlVideoElement
impl AsRef<HtmlElement> for HtmlVideoElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<HtmlMediaElement> for HtmlVideoElement
impl AsRef<HtmlMediaElement> for HtmlVideoElement
source§fn as_ref(&self) -> &HtmlMediaElement
fn as_ref(&self) -> &HtmlMediaElement
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<JsValue> for HtmlVideoElement
impl AsRef<JsValue> for HtmlVideoElement
source§impl AsRef<Node> for HtmlVideoElement
impl AsRef<Node> for HtmlVideoElement
source§impl AsRef<Object> for HtmlVideoElement
impl AsRef<Object> for HtmlVideoElement
source§impl Clone for HtmlVideoElement
impl Clone for HtmlVideoElement
source§fn clone(&self) -> HtmlVideoElement
fn clone(&self) -> HtmlVideoElement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HtmlVideoElement
impl Debug for HtmlVideoElement
source§impl From<HtmlVideoElement> for Element
impl From<HtmlVideoElement> for Element
source§fn from(obj: HtmlVideoElement) -> Element
fn from(obj: HtmlVideoElement) -> Element
Converts to this type from the input type.
source§impl From<HtmlVideoElement> for EventTarget
impl From<HtmlVideoElement> for EventTarget
source§fn from(obj: HtmlVideoElement) -> EventTarget
fn from(obj: HtmlVideoElement) -> EventTarget
Converts to this type from the input type.
source§impl From<HtmlVideoElement> for HtmlElement
impl From<HtmlVideoElement> for HtmlElement
source§fn from(obj: HtmlVideoElement) -> HtmlElement
fn from(obj: HtmlVideoElement) -> HtmlElement
Converts to this type from the input type.
source§impl From<HtmlVideoElement> for HtmlMediaElement
impl From<HtmlVideoElement> for HtmlMediaElement
source§fn from(obj: HtmlVideoElement) -> HtmlMediaElement
fn from(obj: HtmlVideoElement) -> HtmlMediaElement
Converts to this type from the input type.
source§impl From<HtmlVideoElement> for JsValue
impl From<HtmlVideoElement> for JsValue
source§fn from(obj: HtmlVideoElement) -> JsValue
fn from(obj: HtmlVideoElement) -> JsValue
Converts to this type from the input type.
source§impl From<HtmlVideoElement> for Node
impl From<HtmlVideoElement> for Node
source§fn from(obj: HtmlVideoElement) -> Node
fn from(obj: HtmlVideoElement) -> Node
Converts to this type from the input type.
source§impl From<HtmlVideoElement> for Object
impl From<HtmlVideoElement> for Object
source§fn from(obj: HtmlVideoElement) -> Object
fn from(obj: HtmlVideoElement) -> Object
Converts to this type from the input type.
source§impl From<JsValue> for HtmlVideoElement
impl From<JsValue> for HtmlVideoElement
source§fn from(obj: JsValue) -> HtmlVideoElement
fn from(obj: JsValue) -> HtmlVideoElement
Converts to this type from the input type.
source§impl FromWasmAbi for HtmlVideoElement
impl FromWasmAbi for HtmlVideoElement
source§impl<'a> IntoWasmAbi for &'a HtmlVideoElement
impl<'a> IntoWasmAbi for &'a HtmlVideoElement
source§impl IntoWasmAbi for HtmlVideoElement
impl IntoWasmAbi for HtmlVideoElement
source§impl JsCast for HtmlVideoElement
impl JsCast for HtmlVideoElement
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
Performs a dynamic
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
Test whether this JS value is an instance of the type
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
source§impl OptionFromWasmAbi for HtmlVideoElement
impl OptionFromWasmAbi for HtmlVideoElement
source§impl<'a> OptionIntoWasmAbi for &'a HtmlVideoElement
impl<'a> OptionIntoWasmAbi for &'a HtmlVideoElement
source§impl OptionIntoWasmAbi for HtmlVideoElement
impl OptionIntoWasmAbi for HtmlVideoElement
source§impl RefFromWasmAbi for HtmlVideoElement
impl RefFromWasmAbi for HtmlVideoElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to
Self
are recovered from.§type Anchor = ManuallyDrop<HtmlVideoElement>
type Anchor = ManuallyDrop<HtmlVideoElement>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for HtmlVideoElement
impl Send for HtmlVideoElement
impl Sync for HtmlVideoElement
impl Unpin for HtmlVideoElement
impl UnwindSafe for HtmlVideoElement
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more