pub trait HTMLMediaElementMethods {
Show 45 methods fn GetError(&self) -> Option<Root<Dom<MediaError>>>; fn Src(&self) -> USVString; fn SetSrc(&self, value: USVString); fn GetSrcObject(&self) -> Option<MediaStreamOrBlob>; fn SetSrcObject(&self, value: Option<MediaStreamOrBlob>); fn CurrentSrc(&self) -> USVString; fn GetCrossOrigin(&self) -> Option<DOMString>; fn SetCrossOrigin(&self, value: Option<DOMString>); fn NetworkState(&self) -> u16; fn Preload(&self) -> DOMString; fn SetPreload(&self, value: DOMString); fn Buffered(&self) -> Root<Dom<TimeRanges>>; fn Load(&self); fn CanPlayType(&self, type_: DOMString) -> CanPlayTypeResult; fn ReadyState(&self) -> u16; fn Seeking(&self) -> bool; fn CurrentTime(&self) -> Finite<f64>; fn SetCurrentTime(&self, value: Finite<f64>); fn FastSeek(&self, time: Finite<f64>); fn Duration(&self) -> f64; fn Paused(&self) -> bool; fn GetDefaultPlaybackRate(&self) -> Result<Finite<f64>, Error>; fn SetDefaultPlaybackRate(&self, value: Finite<f64>) -> Result<(), Error>; fn GetPlaybackRate(&self) -> Result<Finite<f64>, Error>; fn SetPlaybackRate(&self, value: Finite<f64>) -> Result<(), Error>; fn Played(&self) -> Root<Dom<TimeRanges>>; fn Ended(&self) -> bool; fn Autoplay(&self) -> bool; fn SetAutoplay(&self, value: bool); fn Loop(&self) -> bool; fn SetLoop(&self, value: bool); fn Play(&self, _comp: InRealm<'_>) -> Rc<Promise>; fn Pause(&self); fn Controls(&self) -> bool; fn SetControls(&self, value: bool); fn GetVolume(&self) -> Result<Finite<f64>, Error>; fn SetVolume(&self, value: Finite<f64>) -> Result<(), Error>; fn Muted(&self) -> bool; fn SetMuted(&self, value: bool); fn DefaultMuted(&self) -> bool; fn SetDefaultMuted(&self, value: bool); fn AudioTracks(&self) -> Root<Dom<AudioTrackList>>; fn VideoTracks(&self) -> Root<Dom<VideoTrackList>>; fn TextTracks(&self) -> Root<Dom<TextTrackList>>; fn AddTextTrack(
        &self,
        kind: TextTrackKind,
        label: DOMString,
        language: DOMString
    ) -> Root<Dom<TextTrack>>;
}

Required Methods§

source

fn GetError(&self) -> Option<Root<Dom<MediaError>>>

source

fn Src(&self) -> USVString

source

fn SetSrc(&self, value: USVString)

source

fn GetSrcObject(&self) -> Option<MediaStreamOrBlob>

source

fn SetSrcObject(&self, value: Option<MediaStreamOrBlob>)

source

fn CurrentSrc(&self) -> USVString

source

fn GetCrossOrigin(&self) -> Option<DOMString>

source

fn SetCrossOrigin(&self, value: Option<DOMString>)

source

fn NetworkState(&self) -> u16

source

fn Preload(&self) -> DOMString

source

fn SetPreload(&self, value: DOMString)

source

fn Buffered(&self) -> Root<Dom<TimeRanges>>

source

fn Load(&self)

source

fn CanPlayType(&self, type_: DOMString) -> CanPlayTypeResult

source

fn ReadyState(&self) -> u16

source

fn Seeking(&self) -> bool

source

fn CurrentTime(&self) -> Finite<f64>

source

fn SetCurrentTime(&self, value: Finite<f64>)

source

fn FastSeek(&self, time: Finite<f64>)

source

fn Duration(&self) -> f64

source

fn Paused(&self) -> bool

source

fn GetDefaultPlaybackRate(&self) -> Result<Finite<f64>, Error>

source

fn SetDefaultPlaybackRate(&self, value: Finite<f64>) -> Result<(), Error>

source

fn GetPlaybackRate(&self) -> Result<Finite<f64>, Error>

source

fn SetPlaybackRate(&self, value: Finite<f64>) -> Result<(), Error>

source

fn Played(&self) -> Root<Dom<TimeRanges>>

source

fn Ended(&self) -> bool

source

fn Autoplay(&self) -> bool

source

fn SetAutoplay(&self, value: bool)

source

fn Loop(&self) -> bool

source

fn SetLoop(&self, value: bool)

source

fn Play(&self, _comp: InRealm<'_>) -> Rc<Promise>

source

fn Pause(&self)

source

fn Controls(&self) -> bool

source

fn SetControls(&self, value: bool)

source

fn GetVolume(&self) -> Result<Finite<f64>, Error>

source

fn SetVolume(&self, value: Finite<f64>) -> Result<(), Error>

source

fn Muted(&self) -> bool

source

fn SetMuted(&self, value: bool)

source

fn DefaultMuted(&self) -> bool

source

fn SetDefaultMuted(&self, value: bool)

source

fn AudioTracks(&self) -> Root<Dom<AudioTrackList>>

source

fn VideoTracks(&self) -> Root<Dom<VideoTrackList>>

source

fn TextTracks(&self) -> Root<Dom<TextTrackList>>

source

fn AddTextTrack(
    &self,
    kind: TextTrackKind,
    label: DOMString,
    language: DOMString
) -> Root<Dom<TextTrack>>

Implementors§