pub struct PlayerItemIntegratedTimelineSnapshot { /* private fields */ }Expand description
Re-exports the AVPlayer framework surface for this item.
Mirrors the AVPlayer framework counterpart for PlayerItemIntegratedTimelineSnapshot.
Implementations§
Source§impl PlayerItemIntegratedTimelineSnapshot
impl PlayerItemIntegratedTimelineSnapshot
Sourcepub fn info(
&self,
) -> Result<PlayerItemIntegratedTimelineSnapshotInfo, AVPlayerError>
pub fn info( &self, ) -> Result<PlayerItemIntegratedTimelineSnapshotInfo, AVPlayerError>
Calls the AVPlayer framework counterpart for info.
Sourcepub fn current_segment(&self) -> Option<PlayerItemIntegratedTimelineSegment>
pub fn current_segment(&self) -> Option<PlayerItemIntegratedTimelineSegment>
Calls the AVPlayer framework counterpart for current_segment.
Sourcepub fn segment_count(&self) -> usize
pub fn segment_count(&self) -> usize
Calls the AVPlayer framework counterpart for segment_count.
Sourcepub fn segment_at_index(
&self,
index: usize,
) -> Option<PlayerItemIntegratedTimelineSegment>
pub fn segment_at_index( &self, index: usize, ) -> Option<PlayerItemIntegratedTimelineSegment>
Calls the AVPlayer framework counterpart for segment_at_index.
Sourcepub fn segment_and_offset_into_segment(
&self,
timeline_time: Time,
) -> Result<(PlayerItemIntegratedTimelineSegmentInfo, Time), AVPlayerError>
pub fn segment_and_offset_into_segment( &self, timeline_time: Time, ) -> Result<(PlayerItemIntegratedTimelineSegmentInfo, Time), AVPlayerError>
Calls the AVPlayer framework counterpart for segment_and_offset_into_segment.
Trait Implementations§
impl Send for PlayerItemIntegratedTimelineSnapshot
Auto Trait Implementations§
impl Freeze for PlayerItemIntegratedTimelineSnapshot
impl RefUnwindSafe for PlayerItemIntegratedTimelineSnapshot
impl !Sync for PlayerItemIntegratedTimelineSnapshot
impl Unpin for PlayerItemIntegratedTimelineSnapshot
impl UnsafeUnpin for PlayerItemIntegratedTimelineSnapshot
impl UnwindSafe for PlayerItemIntegratedTimelineSnapshot
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