[−][src]Struct web_sys::HtmlVideoElement
The HTMLVideoElement
object
This API requires the following crate features to be activated: HtmlVideoElement
Methods
impl HtmlVideoElement
[src]
impl HtmlVideoElement
pub fn get_video_playback_quality(&self) -> VideoPlaybackQuality | [src] |
The getVideoPlaybackQuality()
method
This API requires the following crate features to be activated: HtmlVideoElement
, VideoPlaybackQuality
impl HtmlVideoElement
[src]
impl HtmlVideoElement
pub fn width(&self) -> u32 | [src] |
The width
getter
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
impl HtmlVideoElement
pub fn set_width(&self, width: u32) | [src] |
The width
setter
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
impl HtmlVideoElement
pub fn height(&self) -> u32 | [src] |
The height
getter
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
impl HtmlVideoElement
pub fn set_height(&self, height: u32) | [src] |
The height
setter
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
impl HtmlVideoElement
pub fn video_width(&self) -> u32 | [src] |
The videoWidth
getter
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
impl HtmlVideoElement
pub fn video_height(&self) -> u32 | [src] |
The videoHeight
getter
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
impl HtmlVideoElement
pub fn poster(&self) -> String | [src] |
The poster
getter
This API requires the following crate features to be activated: HtmlVideoElement
impl HtmlVideoElement
[src]
impl HtmlVideoElement
pub fn set_poster(&self, poster: &str) | [src] |
The poster
setter
This API requires the following crate features to be activated: HtmlVideoElement
Methods from Deref<Target = 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( | [src] |
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( | [src] |
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 fn error(&self) -> Option<MediaError> | [src] |
The error
getter
This API requires the following crate features to be activated: HtmlMediaElement
, MediaError
pub fn src(&self) -> String | [src] |
The src
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_src(&self, src: &str) | [src] |
The src
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn current_src(&self) -> String | [src] |
The currentSrc
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn cross_origin(&self) -> Option<String> | [src] |
The crossOrigin
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_cross_origin(&self, cross_origin: Option<&str>) | [src] |
The crossOrigin
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn network_state(&self) -> u16 | [src] |
The networkState
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn preload(&self) -> String | [src] |
The preload
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_preload(&self, preload: &str) | [src] |
The preload
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn buffered(&self) -> TimeRanges | [src] |
The buffered
getter
This API requires the following crate features to be activated: HtmlMediaElement
, TimeRanges
pub fn ready_state(&self) -> u16 | [src] |
The readyState
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn seeking(&self) -> bool | [src] |
The seeking
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn current_time(&self) -> f64 | [src] |
The currentTime
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_current_time(&self, current_time: f64) | [src] |
The currentTime
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn duration(&self) -> f64 | [src] |
The duration
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn paused(&self) -> bool | [src] |
The paused
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn default_playback_rate(&self) -> f64 | [src] |
The defaultPlaybackRate
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_default_playback_rate(&self, default_playback_rate: f64) | [src] |
The defaultPlaybackRate
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn playback_rate(&self) -> f64 | [src] |
The playbackRate
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_playback_rate(&self, playback_rate: f64) | [src] |
The playbackRate
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn played(&self) -> TimeRanges | [src] |
The played
getter
This API requires the following crate features to be activated: HtmlMediaElement
, TimeRanges
pub fn seekable(&self) -> TimeRanges | [src] |
The seekable
getter
This API requires the following crate features to be activated: HtmlMediaElement
, TimeRanges
pub fn ended(&self) -> bool | [src] |
The ended
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn autoplay(&self) -> bool | [src] |
The autoplay
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_autoplay(&self, autoplay: bool) | [src] |
The autoplay
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn loop_(&self) -> bool | [src] |
The loop
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_loop(&self, loop_: bool) | [src] |
The loop
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn controls(&self) -> bool | [src] |
The controls
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_controls(&self, controls: bool) | [src] |
The controls
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn volume(&self) -> f64 | [src] |
The volume
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_volume(&self, volume: f64) | [src] |
The volume
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn muted(&self) -> bool | [src] |
The muted
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_muted(&self, muted: bool) | [src] |
The muted
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn default_muted(&self) -> bool | [src] |
The defaultMuted
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_default_muted(&self, default_muted: bool) | [src] |
The defaultMuted
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn audio_tracks(&self) -> AudioTrackList | [src] |
The audioTracks
getter
This API requires the following crate features to be activated: AudioTrackList
, HtmlMediaElement
pub fn video_tracks(&self) -> VideoTrackList | [src] |
The videoTracks
getter
This API requires the following crate features to be activated: HtmlMediaElement
, VideoTrackList
pub fn text_tracks(&self) -> Option<TextTrackList> | [src] |
The textTracks
getter
This API requires the following crate features to be activated: HtmlMediaElement
, TextTrackList
pub fn media_keys(&self) -> Option<MediaKeys> | [src] |
The mediaKeys
getter
This API requires the following crate features to be activated: HtmlMediaElement
, MediaKeys
pub fn onencrypted(&self) -> Option<Function> | [src] |
The onencrypted
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_onencrypted(&self, onencrypted: Option<&Function>) | [src] |
The onencrypted
setter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn onwaitingforkey(&self) -> Option<Function> | [src] |
The onwaitingforkey
getter
This API requires the following crate features to be activated: HtmlMediaElement
pub fn set_onwaitingforkey(&self, onwaitingforkey: Option<&Function>) | [src] |
The onwaitingforkey
setter
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<JsValue> for HtmlVideoElement
[src]
impl AsRef<JsValue> for HtmlVideoElement
impl AsRef<HtmlMediaElement> for HtmlVideoElement
[src]
impl AsRef<HtmlMediaElement> for HtmlVideoElement
fn as_ref(&self) -> &HtmlMediaElement | [src] |
impl AsRef<HtmlElement> for HtmlVideoElement
[src]
impl AsRef<HtmlElement> for HtmlVideoElement
fn as_ref(&self) -> &HtmlElement | [src] |
impl AsRef<Element> for HtmlVideoElement
[src]
impl AsRef<Element> for HtmlVideoElement
impl AsRef<Node> for HtmlVideoElement
[src]
impl AsRef<Node> for HtmlVideoElement
impl AsRef<EventTarget> for HtmlVideoElement
[src]
impl AsRef<EventTarget> for HtmlVideoElement
fn as_ref(&self) -> &EventTarget | [src] |
impl AsRef<Object> for HtmlVideoElement
[src]
impl AsRef<Object> for HtmlVideoElement
impl Clone for HtmlVideoElement
[src]
impl Clone for HtmlVideoElement
fn clone(&self) -> HtmlVideoElement | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl From<JsValue> for HtmlVideoElement
[src]
impl From<JsValue> for HtmlVideoElement
fn from(obj: JsValue) -> HtmlVideoElement | [src] |
impl From<HtmlVideoElement> for JsValue
[src]
impl From<HtmlVideoElement> for JsValue
fn from(obj: HtmlVideoElement) -> JsValue | [src] |
impl From<HtmlVideoElement> for HtmlMediaElement
[src]
impl From<HtmlVideoElement> for HtmlMediaElement
fn from(obj: HtmlVideoElement) -> HtmlMediaElement | [src] |
impl From<HtmlVideoElement> for HtmlElement
[src]
impl From<HtmlVideoElement> for HtmlElement
fn from(obj: HtmlVideoElement) -> HtmlElement | [src] |
impl From<HtmlVideoElement> for Element
[src]
impl From<HtmlVideoElement> for Element
fn from(obj: HtmlVideoElement) -> Element | [src] |
impl From<HtmlVideoElement> for Node
[src]
impl From<HtmlVideoElement> for Node
fn from(obj: HtmlVideoElement) -> Node | [src] |
impl From<HtmlVideoElement> for EventTarget
[src]
impl From<HtmlVideoElement> for EventTarget
fn from(obj: HtmlVideoElement) -> EventTarget | [src] |
impl From<HtmlVideoElement> for Object
[src]
impl From<HtmlVideoElement> for Object
fn from(obj: HtmlVideoElement) -> Object | [src] |
impl Debug for HtmlVideoElement
[src]
impl Debug for HtmlVideoElement
impl Deref for HtmlVideoElement
[src]
impl Deref for HtmlVideoElement
type Target = HtmlMediaElement
The resulting type after dereferencing.
fn deref(&self) -> &HtmlMediaElement | [src] |
impl FromWasmAbi for HtmlVideoElement
[src]
impl FromWasmAbi for HtmlVideoElement
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, extra: &mut dyn Stack) -> Self | [src] |
impl IntoWasmAbi for HtmlVideoElement
[src]
impl IntoWasmAbi for HtmlVideoElement
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, extra: &mut dyn Stack) -> Self::Abi | [src] |
impl<'a> IntoWasmAbi for &'a HtmlVideoElement
[src]
impl<'a> IntoWasmAbi for &'a HtmlVideoElement
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, extra: &mut dyn Stack) -> Self::Abi | [src] |
impl WasmDescribe for HtmlVideoElement
[src]
impl WasmDescribe for HtmlVideoElement
impl OptionIntoWasmAbi for HtmlVideoElement
[src]
impl OptionIntoWasmAbi for HtmlVideoElement
impl<'a> OptionIntoWasmAbi for &'a HtmlVideoElement
[src]
impl<'a> OptionIntoWasmAbi for &'a HtmlVideoElement
impl OptionFromWasmAbi for HtmlVideoElement
[src]
impl OptionFromWasmAbi for HtmlVideoElement
impl RefFromWasmAbi for HtmlVideoElement
[src]
impl RefFromWasmAbi for HtmlVideoElement
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, extra: &mut dyn Stack) -> Self::Anchor | [src] |
impl JsCast for HtmlVideoElement
[src]
impl JsCast for HtmlVideoElement
fn instanceof(val: &JsValue) -> bool | [src] |
fn unchecked_from_js(val: JsValue) -> Self | [src] |
fn unchecked_from_js_ref(val: &JsValue) -> &Self | [src] |
fn is_instance_of<T>(&self) -> bool where | [src] |
Test whether this JS value is an instance of the type T
. Read more
fn dyn_into<T>(self) -> Result<T, Self> where | [src] |
Performs a dynamic cast (checked at runtime) of this value into the target type T
. Read more
fn dyn_ref<T>(&self) -> Option<&T> where | [src] |
Performs a dynamic cast (checked at runtime) of this value into the target type T
. Read more
fn unchecked_into<T>(self) -> T where | [src] |
Performs a zero-cost unchecked cast into the specified type. Read more
fn unchecked_ref<T>(&self) -> &T where | [src] |
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Auto Trait Implementations
impl !Send for HtmlVideoElement
impl !Send for HtmlVideoElement
impl !Sync for HtmlVideoElement
impl !Sync for HtmlVideoElement
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi | [src] |