pub(crate) trait HTMLMediaElementMethods<D: DomTypes> {
Show 45 methods // Required methods fn GetError(&self) -> Option<DomRoot<D::MediaError>>; fn Src(&self) -> USVString; fn SetSrc(&self, value: USVString); fn GetSrcObject(&self) -> Option<MediaStreamOrBlob<D>>; fn SetSrcObject(&self, value: Option<MediaStreamOrBlob<D>>, _can_gc: CanGc); fn CurrentSrc(&self) -> USVString; fn GetCrossOrigin(&self) -> Option<DOMString>; fn SetCrossOrigin(&self, value: Option<DOMString>, _can_gc: CanGc); fn NetworkState(&self) -> u16; fn Preload(&self) -> DOMString; fn SetPreload(&self, value: DOMString); fn Buffered(&self) -> DomRoot<D::TimeRanges>; fn Load(&self, _can_gc: CanGc); 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) -> Fallible<Finite<f64>>; fn SetDefaultPlaybackRate(&self, value: Finite<f64>) -> ErrorResult; fn GetPlaybackRate(&self) -> Fallible<Finite<f64>>; fn SetPlaybackRate(&self, value: Finite<f64>) -> ErrorResult; fn Played(&self) -> DomRoot<D::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<'_>, _can_gc: CanGc) -> Rc<D::Promise>; fn Pause(&self, _can_gc: CanGc); fn Controls(&self) -> bool; fn SetControls(&self, value: bool); fn GetVolume(&self) -> Fallible<Finite<f64>>; fn SetVolume(&self, value: Finite<f64>) -> ErrorResult; fn Muted(&self) -> bool; fn SetMuted(&self, value: bool); fn DefaultMuted(&self) -> bool; fn SetDefaultMuted(&self, value: bool); fn AudioTracks(&self) -> DomRoot<D::AudioTrackList>; fn VideoTracks(&self) -> DomRoot<D::VideoTrackList>; fn TextTracks(&self) -> DomRoot<D::TextTrackList>; fn AddTextTrack( &self, kind: TextTrackKind, label: DOMString, language: DOMString, ) -> DomRoot<D::TextTrack>;
}

Required Methods§

Source

fn GetError(&self) -> Option<DomRoot<D::MediaError>>

Source

fn Src(&self) -> USVString

Source

fn SetSrc(&self, value: USVString)

Source

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

Source

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

Source

fn CurrentSrc(&self) -> USVString

Source

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

Source

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

Source

fn NetworkState(&self) -> u16

Source

fn Preload(&self) -> DOMString

Source

fn SetPreload(&self, value: DOMString)

Source

fn Buffered(&self) -> DomRoot<D::TimeRanges>

Source

fn Load(&self, _can_gc: CanGc)

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) -> Fallible<Finite<f64>>

Source

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

Source

fn GetPlaybackRate(&self) -> Fallible<Finite<f64>>

Source

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

Source

fn Played(&self) -> DomRoot<D::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<'_>, _can_gc: CanGc) -> Rc<D::Promise>

Source

fn Pause(&self, _can_gc: CanGc)

Source

fn Controls(&self) -> bool

Source

fn SetControls(&self, value: bool)

Source

fn GetVolume(&self) -> Fallible<Finite<f64>>

Source

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

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) -> DomRoot<D::AudioTrackList>

Source

fn VideoTracks(&self) -> DomRoot<D::VideoTrackList>

Source

fn TextTracks(&self) -> DomRoot<D::TextTrackList>

Source

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

Implementors§