AVPlayerItemMetadataOutputPushDelegate

Trait AVPlayerItemMetadataOutputPushDelegate 

Source
pub unsafe trait AVPlayerItemMetadataOutputPushDelegate:
    AVPlayerItemOutputPushDelegate
    + Send
    + Sync {
    // Provided method
    unsafe fn metadataOutput_didOutputTimedMetadataGroups_fromPlayerItemTrack(
        &self,
        output: &AVPlayerItemMetadataOutput,
        groups: &NSArray<AVTimedMetadataGroup>,
        track: Option<&AVPlayerItemTrack>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature AVPlayerItemOutput only.
Expand description

Extends AVPlayerItemOutputPushDelegate to provide additional methods specific to metadata output.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn metadataOutput_didOutputTimedMetadataGroups_fromPlayerItemTrack( &self, output: &AVPlayerItemMetadataOutput, groups: &NSArray<AVTimedMetadataGroup>, track: Option<&AVPlayerItemTrack>, )
where Self: Sized + Message,

Available on crate features AVPlayerItemTrack and AVTimedMetadataGroup only.

A delegate callback that delivers a new collection of metadata items.

Parameter output: The AVPlayerItemMetadataOutput source.

Parameter groups: An NSArray of AVTimedMetadataGroups that may contain metadata items with requested identifiers, according to the format descriptions associated with the underlying tracks.

Parameter track: An instance of AVPlayerItemTrack that indicates the source of the metadata items in the group.

Each group provided in a single invocation of this method will have timing that does not overlap with any other group in the array. Note that for some timed metadata formats carried by HTTP live streaming, the timeRange of each group must be reported as kCMTimeIndefinite, because its duration will be unknown until the next metadata group in the stream arrives. In these cases, the groups parameter will always contain a single group. Groups are typically packaged into arrays for delivery to your delegate according to the chunking or interleaving of the underlying metadata data. Note that if the item carries multiple metadata tracks containing metadata with the same metadata identifiers, this method can be invoked for each one separately, each with reference to the associated AVPlayerItemTrack. Note that the associated AVPlayerItemTrack parameter can be nil which implies that the metadata describes the asset as a whole, not just a single track of the asset.

Trait Implementations§

Source§

impl ProtocolType for dyn AVPlayerItemMetadataOutputPushDelegate

Source§

const NAME: &'static str = "AVPlayerItemMetadataOutputPushDelegate"

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 AVPlayerItemMetadataOutputPushDelegate

Implementations on Foreign Types§

Source§

impl<T> AVPlayerItemMetadataOutputPushDelegate for ProtocolObject<T>

Implementors§