[−][src]Struct web_sys::HtmlVideoElement
The HtmlVideoElement
class.
This API requires the following crate features to be activated: HtmlVideoElement
Implementations
impl HtmlVideoElement
[src]
pub fn width(&self) -> u32
[src]
Getter for the width
field of this object.
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
pub fn set_width(&self, value: u32)
[src]
Setter for the width
field of this object.
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
pub fn height(&self) -> u32
[src]
Getter for the height
field of this object.
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
pub fn set_height(&self, value: u32)
[src]
Setter for the height
field of this object.
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
pub fn video_width(&self) -> u32
[src]
Getter for the videoWidth
field of this object.
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
pub fn video_height(&self) -> u32
[src]
Getter for the videoHeight
field of this object.
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
pub fn poster(&self) -> String
[src]
Getter for the poster
field of this object.
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
pub fn set_poster(&self, value: &str)
[src]
Setter for the poster
field of this object.
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
pub fn get_video_playback_quality(&self) -> VideoPlaybackQuality
[src]
The getVideoPlaybackQuality()
method.
This API requires the following crate features to be activated: HtmlVideoElement
, VideoPlaybackQuality
Methods from Deref<Target = HtmlMediaElement>
pub fn error(&self) -> Option<MediaError>
[src]
Getter for the error
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
, MediaError
pub fn src(&self) -> String
[src]
Getter for the src
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_src(&self, value: &str)
[src]
Setter for the src
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn current_src(&self) -> String
[src]
Getter for the currentSrc
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn src_object(&self) -> Option<MediaStream>
[src]
Getter for the srcObject
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
, MediaStream
pub fn set_src_object(&self, value: Option<&MediaStream>)
[src]
Setter for the srcObject
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
, MediaStream
pub fn cross_origin(&self) -> Option<String>
[src]
Getter for the crossOrigin
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_cross_origin(&self, value: Option<&str>)
[src]
Setter for the crossOrigin
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn network_state(&self) -> u16
[src]
Getter for the networkState
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn preload(&self) -> String
[src]
Getter for the preload
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_preload(&self, value: &str)
[src]
Setter for the preload
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn buffered(&self) -> TimeRanges
[src]
Getter for the buffered
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
, TimeRanges
pub fn ready_state(&self) -> u16
[src]
Getter for the readyState
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn seeking(&self) -> bool
[src]
Getter for the seeking
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn current_time(&self) -> f64
[src]
Getter for the currentTime
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_current_time(&self, value: f64)
[src]
Setter for the currentTime
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn duration(&self) -> f64
[src]
Getter for the duration
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn paused(&self) -> bool
[src]
Getter for the paused
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn default_playback_rate(&self) -> f64
[src]
Getter for the defaultPlaybackRate
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_default_playback_rate(&self, value: f64)
[src]
Setter for the defaultPlaybackRate
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn playback_rate(&self) -> f64
[src]
Getter for the playbackRate
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_playback_rate(&self, value: f64)
[src]
Setter for the playbackRate
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn played(&self) -> TimeRanges
[src]
Getter for the played
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
, TimeRanges
pub fn seekable(&self) -> TimeRanges
[src]
Getter for the seekable
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
, TimeRanges
pub fn ended(&self) -> bool
[src]
Getter for the ended
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn autoplay(&self) -> bool
[src]
Getter for the autoplay
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_autoplay(&self, value: bool)
[src]
Setter for the autoplay
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn loop_(&self) -> bool
[src]
Getter for the loop
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_loop(&self, value: bool)
[src]
Setter for the loop
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn controls(&self) -> bool
[src]
Getter for the controls
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_controls(&self, value: bool)
[src]
Setter for the controls
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn volume(&self) -> f64
[src]
Getter for the volume
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_volume(&self, value: f64)
[src]
Setter for the volume
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn muted(&self) -> bool
[src]
Getter for the muted
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_muted(&self, value: bool)
[src]
Setter for the muted
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn default_muted(&self) -> bool
[src]
Getter for the defaultMuted
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_default_muted(&self, value: bool)
[src]
Setter for the defaultMuted
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn audio_tracks(&self) -> AudioTrackList
[src]
Getter for the audioTracks
field of this object.
This API requires the following crate features to be activated: AudioTrackList
, HtmlMediaElement
pub fn video_tracks(&self) -> VideoTrackList
[src]
Getter for the videoTracks
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
, VideoTrackList
pub fn text_tracks(&self) -> Option<TextTrackList>
[src]
Getter for the textTracks
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
, TextTrackList
pub fn media_keys(&self) -> Option<MediaKeys>
[src]
Getter for the mediaKeys
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
, MediaKeys
pub fn onencrypted(&self) -> Option<Function>
[src]
Getter for the onencrypted
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_onencrypted(&self, value: Option<&Function>)
[src]
Setter for the onencrypted
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn onwaitingforkey(&self) -> Option<Function>
[src]
Getter for the onwaitingforkey
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_onwaitingforkey(&self, value: Option<&Function>)
[src]
Setter for the onwaitingforkey
field of this object.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn add_text_track(&self, kind: TextTrackKind) -> TextTrack
[src]
The addTextTrack()
method.
This API requires the following crate features to be activated: HtmlMediaElement
, TextTrack
, TextTrackKind
pub fn add_text_track_with_label(
&self,
kind: TextTrackKind,
label: &str
) -> TextTrack
[src]
&self,
kind: TextTrackKind,
label: &str
) -> TextTrack
The addTextTrack()
method.
This API requires the following crate features to be activated: HtmlMediaElement
, TextTrack
, TextTrackKind
pub fn add_text_track_with_label_and_language(
&self,
kind: TextTrackKind,
label: &str,
language: &str
) -> TextTrack
[src]
&self,
kind: TextTrackKind,
label: &str,
language: &str
) -> TextTrack
The addTextTrack()
method.
This API requires the following crate features to be activated: HtmlMediaElement
, TextTrack
, TextTrackKind
pub fn can_play_type(&self, type_: &str) -> String
[src]
The canPlayType()
method.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn fast_seek(&self, time: f64) -> Result<(), JsValue>
[src]
The fastSeek()
method.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn has_suspend_taint(&self) -> bool
[src]
The hasSuspendTaint()
method.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn load(&self)
[src]
The load()
method.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn pause(&self) -> Result<(), JsValue>
[src]
The pause()
method.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn play(&self) -> Result<Promise, JsValue>
[src]
The play()
method.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn seek_to_next_frame(&self) -> Result<Promise, JsValue>
[src]
The seekToNextFrame()
method.
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_media_keys(&self, media_keys: Option<&MediaKeys>) -> Promise
[src]
The setMediaKeys()
method.
This API requires the following crate features to be activated: HtmlMediaElement
, MediaKeys
pub fn set_visible(&self, a_visible: bool)
[src]
The setVisible()
method.
This API requires the following crate features to be activated: HtmlMediaElement
pub const NETWORK_EMPTY: u16
[src]
pub const NETWORK_IDLE: u16
[src]
pub const NETWORK_LOADING: u16
[src]
pub const NETWORK_NO_SOURCE: u16
[src]
pub const HAVE_NOTHING: u16
[src]
pub const HAVE_METADATA: u16
[src]
pub const HAVE_CURRENT_DATA: u16
[src]
pub const HAVE_FUTURE_DATA: u16
[src]
pub const HAVE_ENOUGH_DATA: u16
[src]
Trait Implementations
impl AsRef<Element> for HtmlVideoElement
[src]
impl AsRef<EventTarget> for HtmlVideoElement
[src]
fn as_ref(&self) -> &EventTarget
[src]
impl AsRef<HtmlElement> for HtmlVideoElement
[src]
fn as_ref(&self) -> &HtmlElement
[src]
impl AsRef<HtmlMediaElement> for HtmlVideoElement
[src]
fn as_ref(&self) -> &HtmlMediaElement
[src]
impl AsRef<HtmlVideoElement> for HtmlVideoElement
[src]
fn as_ref(&self) -> &HtmlVideoElement
[src]
impl AsRef<JsValue> for HtmlVideoElement
[src]
impl AsRef<Node> for HtmlVideoElement
[src]
impl AsRef<Object> for HtmlVideoElement
[src]
impl Clone for HtmlVideoElement
[src]
fn clone(&self) -> HtmlVideoElement
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HtmlVideoElement
[src]
impl Deref for HtmlVideoElement
[src]
type Target = HtmlMediaElement
The resulting type after dereferencing.
fn deref(&self) -> &HtmlMediaElement
[src]
impl Eq for HtmlVideoElement
[src]
impl From<HtmlVideoElement> for JsValue
[src]
fn from(obj: HtmlVideoElement) -> JsValue
[src]
impl From<HtmlVideoElement> for HtmlMediaElement
[src]
fn from(obj: HtmlVideoElement) -> HtmlMediaElement
[src]
impl From<HtmlVideoElement> for HtmlElement
[src]
fn from(obj: HtmlVideoElement) -> HtmlElement
[src]
impl From<HtmlVideoElement> for Element
[src]
fn from(obj: HtmlVideoElement) -> Element
[src]
impl From<HtmlVideoElement> for Node
[src]
fn from(obj: HtmlVideoElement) -> Node
[src]
impl From<HtmlVideoElement> for EventTarget
[src]
fn from(obj: HtmlVideoElement) -> EventTarget
[src]
impl From<HtmlVideoElement> for Object
[src]
fn from(obj: HtmlVideoElement) -> Object
[src]
impl From<JsValue> for HtmlVideoElement
[src]
fn from(obj: JsValue) -> HtmlVideoElement
[src]
impl FromWasmAbi for HtmlVideoElement
[src]
type Abi = <JsValue as FromWasmAbi>::Abi
The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more
unsafe fn from_abi(js: Self::Abi) -> Self
[src]
impl IntoWasmAbi for HtmlVideoElement
[src]
type Abi = <JsValue as IntoWasmAbi>::Abi
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self) -> Self::Abi
[src]
impl<'a> IntoWasmAbi for &'a HtmlVideoElement
[src]
type Abi = <&'a JsValue as IntoWasmAbi>::Abi
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self) -> Self::Abi
[src]
impl JsCast for HtmlVideoElement
[src]
fn instanceof(val: &JsValue) -> bool
[src]
fn unchecked_from_js(val: JsValue) -> Self
[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self
[src]
fn has_type<T>(&self) -> bool where
T: JsCast,
[src]
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast,
[src]
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast,
[src]
T: JsCast,
fn unchecked_into<T>(self) -> T where
T: JsCast,
[src]
T: JsCast,
fn unchecked_ref<T>(&self) -> &T where
T: JsCast,
[src]
T: JsCast,
fn is_instance_of<T>(&self) -> bool where
T: JsCast,
[src]
T: JsCast,
fn is_type_of(val: &JsValue) -> bool
[src]
impl OptionFromWasmAbi for HtmlVideoElement
[src]
impl OptionIntoWasmAbi for HtmlVideoElement
[src]
impl<'a> OptionIntoWasmAbi for &'a HtmlVideoElement
[src]
impl PartialEq<HtmlVideoElement> for HtmlVideoElement
[src]
fn eq(&self, other: &HtmlVideoElement) -> bool
[src]
fn ne(&self, other: &HtmlVideoElement) -> bool
[src]
impl RefFromWasmAbi for HtmlVideoElement
[src]
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self
are recovered from.
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 more
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl StructuralEq for HtmlVideoElement
[src]
impl StructuralPartialEq for HtmlVideoElement
[src]
impl WasmDescribe for HtmlVideoElement
[src]
Auto Trait Implementations
impl RefUnwindSafe for HtmlVideoElement
impl !Send for HtmlVideoElement
impl !Sync for HtmlVideoElement
impl Unpin for HtmlVideoElement
impl UnwindSafe for HtmlVideoElement
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,