pub enum MediaEventKind {
LoadedMetadata,
DurationChange,
TimeUpdate,
Progress,
Play,
Playing,
Pause,
Waiting,
Seeked,
Ended,
VolumeChange,
Error,
}Expand description
What happened to a <video> or an <audio>: the media events the driver listens to for
on_media, under their DOM names.
Variants§
LoadedMetadata
loadedmetadata: the length and the size of the picture are known.
DurationChange
durationchange
TimeUpdate
timeupdate: the position moved, a few times a second while it plays, and after
a jump.
Progress
progress: more of it came over the network.
Play
play: asked to play, by the page or by the browser’s own controls.
Playing
playing: plays, also after waiting for data.
Pause
pause
Waiting
waiting: stopped for data it doesn’t have yet.
Seeked
seeked: a jump to another position is done.
Ended
ended
VolumeChange
volumechange: the volume, or muting.
Error
error: it can’t be played, f. ex. the file isn’t there anymore.
Trait Implementations§
Source§impl Clone for MediaEventKind
impl Clone for MediaEventKind
impl Copy for MediaEventKind
Source§impl Debug for MediaEventKind
impl Debug for MediaEventKind
impl Eq for MediaEventKind
Source§impl PartialEq for MediaEventKind
impl PartialEq for MediaEventKind
impl StructuralPartialEq for MediaEventKind
Auto Trait Implementations§
impl Freeze for MediaEventKind
impl RefUnwindSafe for MediaEventKind
impl Send for MediaEventKind
impl Sync for MediaEventKind
impl Unpin for MediaEventKind
impl UnsafeUnpin for MediaEventKind
impl UnwindSafe for MediaEventKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more