Enum servo_media_player::PlayerEvent
source · pub enum PlayerEvent {
EndOfStream,
EnoughData,
Error(String),
VideoFrameUpdated,
MetadataUpdated(Metadata),
NeedData,
PositionChanged(u64),
SeekData(u64, SeekLock),
SeekDone(u64),
StateChanged(PlaybackState),
}
Variants§
EndOfStream
EnoughData
The player has enough data. The client should stop pushing data into.
Error(String)
VideoFrameUpdated
MetadataUpdated(Metadata)
NeedData
The internal player queue is running out of data. The client should start pushing more data.
PositionChanged(u64)
SeekData(u64, SeekLock)
The player needs the data to perform a seek to the given offset. The next push_data should get the buffers from the new offset. The player will be blocked until the user unlocks it through the given SeekLock instance. This event is only received for seekable stream types.
SeekDone(u64)
The player has performed a seek to the given offset.
StateChanged(PlaybackState)
Trait Implementations§
source§impl Clone for PlayerEvent
impl Clone for PlayerEvent
source§fn clone(&self) -> PlayerEvent
fn clone(&self) -> PlayerEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PlayerEvent
impl Debug for PlayerEvent
source§impl<'de> Deserialize<'de> for PlayerEvent
impl<'de> Deserialize<'de> for PlayerEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PlayerEvent
impl !RefUnwindSafe for PlayerEvent
impl Send for PlayerEvent
impl !Sync for PlayerEvent
impl Unpin for PlayerEvent
impl UnwindSafe for PlayerEvent
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