[][src]Struct web_sys::HtmlAudioElement

#[repr(transparent)]
pub struct HtmlAudioElement { /* fields omitted */ }

The HTMLAudioElement object

MDN Documentation

This API requires the following crate features to be activated: HtmlAudioElement

Methods

impl HtmlAudioElement[src]

pub fn new() -> Result<HtmlAudioElement, JsValue>[src]

The new HTMLAudioElement(..) constructor, creating a new instance of HTMLAudioElement

MDN Documentation

This API requires the following crate features to be activated: HtmlAudioElement

impl HtmlAudioElement[src]

pub fn new_with_src(src: &str) -> Result<HtmlAudioElement, JsValue>[src]

The new HTMLAudioElement(..) constructor, creating a new instance of HTMLAudioElement

MDN Documentation

This API requires the following crate features to be activated: HtmlAudioElement

Methods from Deref<Target = HtmlMediaElement>

pub fn add_text_track(&self, kind: TextTrackKind) -> TextTrack[src]

The addTextTrack() method

MDN Documentation

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]

The addTextTrack() method

MDN Documentation

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]

The addTextTrack() method

MDN Documentation

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

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn fast_seek(&self, time: f64) -> Result<(), JsValue>[src]

The fastSeek() method

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn has_suspend_taint(&self) -> bool[src]

The hasSuspendTaint() method

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn load(&self)[src]

The load() method

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn pause(&self) -> Result<(), JsValue>[src]

The pause() method

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn play(&self) -> Result<Promise, JsValue>[src]

The play() method

MDN Documentation

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

MDN Documentation

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

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement, MediaKeys

pub fn set_visible(&self, a_visible: bool)[src]

The setVisible() method

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn error(&self) -> Option<MediaError>[src]

The error getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement, MediaError

pub fn src(&self) -> String[src]

The src getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_src(&self, src: &str)[src]

The src setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn current_src(&self) -> String[src]

The currentSrc getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn src_object(&self) -> Option<MediaStream>[src]

The srcObject getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement, MediaStream

pub fn set_src_object(&self, src_object: Option<&MediaStream>)[src]

The srcObject setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement, MediaStream

pub fn cross_origin(&self) -> Option<String>[src]

The crossOrigin getter

MDN Documentation

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

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn network_state(&self) -> u16[src]

The networkState getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn preload(&self) -> String[src]

The preload getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_preload(&self, preload: &str)[src]

The preload setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn buffered(&self) -> TimeRanges[src]

The buffered getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement, TimeRanges

pub fn ready_state(&self) -> u16[src]

The readyState getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn seeking(&self) -> bool[src]

The seeking getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn current_time(&self) -> f64[src]

The currentTime getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_current_time(&self, current_time: f64)[src]

The currentTime setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn duration(&self) -> f64[src]

The duration getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn paused(&self) -> bool[src]

The paused getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn default_playback_rate(&self) -> f64[src]

The defaultPlaybackRate getter

MDN Documentation

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

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn playback_rate(&self) -> f64[src]

The playbackRate getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_playback_rate(&self, playback_rate: f64)[src]

The playbackRate setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn played(&self) -> TimeRanges[src]

The played getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement, TimeRanges

pub fn seekable(&self) -> TimeRanges[src]

The seekable getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement, TimeRanges

pub fn ended(&self) -> bool[src]

The ended getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn autoplay(&self) -> bool[src]

The autoplay getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_autoplay(&self, autoplay: bool)[src]

The autoplay setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn loop_(&self) -> bool[src]

The loop getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_loop(&self, loop_: bool)[src]

The loop setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn controls(&self) -> bool[src]

The controls getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_controls(&self, controls: bool)[src]

The controls setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn volume(&self) -> f64[src]

The volume getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_volume(&self, volume: f64)[src]

The volume setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn muted(&self) -> bool[src]

The muted getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_muted(&self, muted: bool)[src]

The muted setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn default_muted(&self) -> bool[src]

The defaultMuted getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_default_muted(&self, default_muted: bool)[src]

The defaultMuted setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn audio_tracks(&self) -> AudioTrackList[src]

The audioTracks getter

MDN Documentation

This API requires the following crate features to be activated: AudioTrackList, HtmlMediaElement

pub fn video_tracks(&self) -> VideoTrackList[src]

The videoTracks getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement, VideoTrackList

pub fn text_tracks(&self) -> Option<TextTrackList>[src]

The textTracks getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement, TextTrackList

pub fn media_keys(&self) -> Option<MediaKeys>[src]

The mediaKeys getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement, MediaKeys

pub fn onencrypted(&self) -> Option<Function>[src]

The onencrypted getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_onencrypted(&self, onencrypted: Option<&Function>)[src]

The onencrypted setter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn onwaitingforkey(&self) -> Option<Function>[src]

The onwaitingforkey getter

MDN Documentation

This API requires the following crate features to be activated: HtmlMediaElement

pub fn set_onwaitingforkey(&self, onwaitingforkey: Option<&Function>)[src]

The onwaitingforkey setter

MDN Documentation

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 HtmlAudioElement[src]

impl AsRef<EventTarget> for HtmlAudioElement[src]

impl AsRef<HtmlAudioElement> for HtmlAudioElement[src]

impl AsRef<HtmlElement> for HtmlAudioElement[src]

impl AsRef<HtmlMediaElement> for HtmlAudioElement[src]

impl AsRef<JsValue> for HtmlAudioElement[src]

impl AsRef<Node> for HtmlAudioElement[src]

impl AsRef<Object> for HtmlAudioElement[src]

impl Clone for HtmlAudioElement[src]

impl Debug for HtmlAudioElement[src]

impl Deref for HtmlAudioElement[src]

type Target = HtmlMediaElement

The resulting type after dereferencing.

impl Eq for HtmlAudioElement[src]

impl From<HtmlAudioElement> for JsValue[src]

impl From<HtmlAudioElement> for HtmlMediaElement[src]

impl From<HtmlAudioElement> for HtmlElement[src]

impl From<HtmlAudioElement> for Element[src]

impl From<HtmlAudioElement> for Node[src]

impl From<HtmlAudioElement> for EventTarget[src]

impl From<HtmlAudioElement> for Object[src]

impl From<JsValue> for HtmlAudioElement[src]

impl FromWasmAbi for HtmlAudioElement[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

impl IntoWasmAbi for HtmlAudioElement[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a HtmlAudioElement[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for HtmlAudioElement[src]

impl OptionFromWasmAbi for HtmlAudioElement[src]

impl OptionIntoWasmAbi for HtmlAudioElement[src]

impl<'a> OptionIntoWasmAbi for &'a HtmlAudioElement[src]

impl PartialEq<HtmlAudioElement> for HtmlAudioElement[src]

impl RefFromWasmAbi for HtmlAudioElement[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<HtmlAudioElement>

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

impl StructuralEq for HtmlAudioElement[src]

impl StructuralPartialEq for HtmlAudioElement[src]

impl WasmDescribe for HtmlAudioElement[src]

Auto Trait Implementations

impl RefUnwindSafe for HtmlAudioElement

impl !Send for HtmlAudioElement

impl !Sync for HtmlAudioElement

impl Unpin for HtmlAudioElement

impl UnwindSafe for HtmlAudioElement

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.