Trait AVPlayerItemOutputPullDelegate

Source
pub unsafe trait AVPlayerItemOutputPullDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn outputMediaDataWillChange(&self, sender: &AVPlayerItemOutput)
       where Self: Sized + Message { ... }
    unsafe fn outputSequenceWasFlushed(&self, output: &AVPlayerItemOutput)
       where Self: Sized + Message { ... }
}
Available on crate feature AVPlayerItemOutput only.
Expand description

Defines common delegate methods for objects participating in AVPlayerItemOutput pull sample output acquisition.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn outputMediaDataWillChange(&self, sender: &AVPlayerItemOutput)
where Self: Sized + Message,

A method invoked once, prior to a new sample, if the AVPlayerItemOutput sender was previously messaged requestNotificationOfMediaDataChangeWithAdvanceInterval:.

This method is invoked once after the sender is messaged requestNotificationOfMediaDataChangeWithAdvanceInterval:.

Source

unsafe fn outputSequenceWasFlushed(&self, output: &AVPlayerItemOutput)
where Self: Sized + Message,

A method invoked when the output is commencing a new sequence.

This method is invoked after any seeking and change in playback direction. If you are maintaining any queued future samples, copied previously, you may want to discard these after receiving this message.

Trait Implementations§

Source§

impl ProtocolType for dyn AVPlayerItemOutputPullDelegate

Source§

const NAME: &'static str = "AVPlayerItemOutputPullDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn AVPlayerItemOutputPullDelegate

Implementations on Foreign Types§

Source§

impl<T> AVPlayerItemOutputPullDelegate for ProtocolObject<T>

Implementors§