pub struct PlayerInterstitialEvent { /* private fields */ }Expand description
Re-exports the AVPlayer framework surface for this item.
Mirrors the AVPlayer framework counterpart for PlayerInterstitialEvent.
Implementations§
Source§impl PlayerInterstitialEvent
impl PlayerInterstitialEvent
Sourcepub fn new(primary_item: &PlayerItem, time: Time) -> Result<Self, AVPlayerError>
pub fn new(primary_item: &PlayerItem, time: Time) -> Result<Self, AVPlayerError>
Calls the AVPlayer framework counterpart for new.
Sourcepub fn info(&self) -> Result<PlayerInterstitialEventInfo, AVPlayerError>
pub fn info(&self) -> Result<PlayerInterstitialEventInfo, AVPlayerError>
Calls the AVPlayer framework counterpart for info.
Sourcepub fn set_identifier(&self, identifier: &str) -> Result<(), AVPlayerError>
pub fn set_identifier(&self, identifier: &str) -> Result<(), AVPlayerError>
Calls the AVPlayer framework counterpart for set_identifier.
Sourcepub fn set_restrictions(
&self,
restrictions: PlayerInterstitialEventRestrictions,
)
pub fn set_restrictions( &self, restrictions: PlayerInterstitialEventRestrictions, )
Calls the AVPlayer framework counterpart for set_restrictions.
Sourcepub fn set_resumption_offset(&self, value: Time)
pub fn set_resumption_offset(&self, value: Time)
Calls the AVPlayer framework counterpart for set_resumption_offset.
Sourcepub fn set_playout_limit(&self, value: Time)
pub fn set_playout_limit(&self, value: Time)
Calls the AVPlayer framework counterpart for set_playout_limit.
Sourcepub fn set_aligns_start_with_primary_segment_boundary(&self, enabled: bool)
pub fn set_aligns_start_with_primary_segment_boundary(&self, enabled: bool)
Calls the AVPlayer framework counterpart for set_aligns_start_with_primary_segment_boundary.
Sourcepub fn set_aligns_resumption_with_primary_segment_boundary(&self, enabled: bool)
pub fn set_aligns_resumption_with_primary_segment_boundary(&self, enabled: bool)
Calls the AVPlayer framework counterpart for set_aligns_resumption_with_primary_segment_boundary.
Sourcepub fn set_cue(
&self,
cue: &PlayerInterstitialEventCue,
) -> Result<(), AVPlayerError>
pub fn set_cue( &self, cue: &PlayerInterstitialEventCue, ) -> Result<(), AVPlayerError>
Calls the AVPlayer framework counterpart for set_cue.
Sourcepub fn set_will_play_once(&self, enabled: bool)
pub fn set_will_play_once(&self, enabled: bool)
Calls the AVPlayer framework counterpart for set_will_play_once.
Sourcepub fn set_timeline_occupancy(
&self,
occupancy: PlayerInterstitialEventTimelineOccupancy,
)
pub fn set_timeline_occupancy( &self, occupancy: PlayerInterstitialEventTimelineOccupancy, )
Calls the AVPlayer framework counterpart for set_timeline_occupancy.
Sourcepub fn set_supplements_primary_content(&self, enabled: bool)
pub fn set_supplements_primary_content(&self, enabled: bool)
Calls the AVPlayer framework counterpart for set_supplements_primary_content.
Sourcepub fn set_content_may_vary(&self, enabled: bool)
pub fn set_content_may_vary(&self, enabled: bool)
Calls the AVPlayer framework counterpart for set_content_may_vary.