#[repr(transparent)]pub struct AVPlayerActionAtItemEnd(pub NSInteger);AVPlayer only.Expand description
These constants are the allowable values of AVPlayer’s actionAtItemEnd property.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl AVPlayerActionAtItemEnd
impl AVPlayerActionAtItemEnd
Sourcepub const Advance: Self
pub const Advance: Self
Indicates that when an AVPlayerItem reaches its end time the player will automatically advance to the next item in its queue. This value is supported only for players of class AVQueuePlayer. An AVPlayer that’s not an AVQueuePlayer will raise an NSInvalidArgumentException if an attempt is made to set its actionAtItemEnd to AVPlayerActionAtItemEndAdvance.
Sourcepub const Pause: Self
pub const Pause: Self
Indicates that when an AVPlayerItem reaches its end time the player will automatically pause (which is to say, the player’s rate will automatically be set to 0).
Sourcepub const None: Self
pub const None: Self
Indicates that when an AVPlayerItem reaches its end time the player will take no action (which is to say, the player’s rate will not change, its currentItem will not change, and its currentTime will continue to be incremented or decremented as time elapses, according to its rate). After this, if the player’s actionAtItemEnd is set to a value other than AVPlayerActionAtItemEndNone, the player will immediately take the action appropriate to that value.
Trait Implementations§
Source§impl Clone for AVPlayerActionAtItemEnd
impl Clone for AVPlayerActionAtItemEnd
Source§fn clone(&self) -> AVPlayerActionAtItemEnd
fn clone(&self) -> AVPlayerActionAtItemEnd
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more