AVPlayerItemMetadataCollectorPushDelegate

Trait AVPlayerItemMetadataCollectorPushDelegate 

Source
pub unsafe trait AVPlayerItemMetadataCollectorPushDelegate:
    NSObjectProtocol
    + Send
    + Sync {
    // Provided method
    unsafe fn metadataCollector_didCollectDateRangeMetadataGroups_indexesOfNewGroups_indexesOfModifiedGroups(
        &self,
        metadata_collector: &AVPlayerItemMetadataCollector,
        metadata_groups: &NSArray<AVDateRangeMetadataGroup>,
        indexes_of_new_groups: &NSIndexSet,
        indexes_of_modified_groups: &NSIndexSet,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature AVPlayerItemMediaDataCollector only.
Expand description

Provided Methods§

Source

unsafe fn metadataCollector_didCollectDateRangeMetadataGroups_indexesOfNewGroups_indexesOfModifiedGroups( &self, metadata_collector: &AVPlayerItemMetadataCollector, metadata_groups: &NSArray<AVDateRangeMetadataGroup>, indexes_of_new_groups: &NSIndexSet, indexes_of_modified_groups: &NSIndexSet, )
where Self: Sized + Message,

Available on crate feature AVTimedMetadataGroup only.

A delegate callback that delivers the total set of AVDateRangeMetadataGroups for this collector.

Parameter metadataCollector: The AVPlayerItemMetadataCollector source.

Parameter metadataGroups: The set of all metadata groups meeting the criteria of the output.

Parameter indexesOfNewGroups: Indexes of metadataGroups added since the last delegate invocation of this method.

Parameter indexesOfModifiedGroups: Indexes of metadataGroups modified since the last delegate invocation of this method.

This method will be invoked whenever new AVDateRangeMetadataGroups are added to metadataGroups or whenever any AVDateRangeMetadataGroups in metadataGroups have been modified since previous invocations. The initial invocation will have indexesOfNewGroup referring to every index in metadataGroups. Subsequent invocations may not contain all previously collected metadata groups if they no longer refer to a region in the AVPlayerItem’s seekableTimeRanges.

Trait Implementations§

Source§

impl ProtocolType for dyn AVPlayerItemMetadataCollectorPushDelegate

Source§

const NAME: &'static str = "AVPlayerItemMetadataCollectorPushDelegate"

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 AVPlayerItemMetadataCollectorPushDelegate

Implementations on Foreign Types§

Source§

impl<T> AVPlayerItemMetadataCollectorPushDelegate for ProtocolObject<T>

Implementors§