pub struct PlayerStats { /* private fields */ }Expand description
Owned playback counters for the current or most recent file session.
Implementations§
Source§impl PlayerStats
impl PlayerStats
Sourcepub fn video_frames_sent(&self, tier: StreamTier) -> u64
pub fn video_frames_sent(&self, tier: StreamTier) -> u64
Sent video frames for the program or preview stream.
Sourcepub fn audio_frames_sent(&self) -> u64
pub fn audio_frames_sent(&self) -> u64
Sent audio packet count.
Sourcepub fn metadata_frames_sent(&self) -> u64
pub fn metadata_frames_sent(&self) -> u64
Sent metadata packet count.
Sourcepub fn wallclock(&self) -> FilePosition
pub fn wallclock(&self) -> FilePosition
Playback wall-clock duration reported by the SDK.
Trait Implementations§
Source§impl Clone for PlayerStats
impl Clone for PlayerStats
impl Copy for PlayerStats
Source§impl Debug for PlayerStats
impl Debug for PlayerStats
Source§impl Default for PlayerStats
impl Default for PlayerStats
impl Eq for PlayerStats
Source§impl Hash for PlayerStats
impl Hash for PlayerStats
Source§impl PartialEq for PlayerStats
impl PartialEq for PlayerStats
impl StructuralPartialEq for PlayerStats
Auto Trait Implementations§
impl Freeze for PlayerStats
impl RefUnwindSafe for PlayerStats
impl Send for PlayerStats
impl Sync for PlayerStats
impl Unpin for PlayerStats
impl UnsafeUnpin for PlayerStats
impl UnwindSafe for PlayerStats
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