Instance Method


Sets the delegate and a dispatch queue on which the delegate is called.


func setDelegate(_ delegate: AVPlayerItemMetadataOutputPushDelegate?, queue delegateQueue: DispatchQueue?)



An object conforming to AVPlayerItemMetadataOutputPushDelegate protocol.


A dispatch queue on which all delegate methods will be called.


You specify the metadata delegate, and a dispatch queue on which it will be called, to be notified as new metadata is encountered in the source media.

See Also

Configuring the Delegate

var advanceIntervalForDelegateInvocation: TimeInterval

The time interval, in seconds, the player item metadata output object messages its delegate earlier than normal.

protocol AVPlayerItemMetadataOutputPushDelegate

Methods you can implement to provide additional metadata.

var delegateQueue: DispatchQueue?

The dispatch queue on which messages are sent to the delegate.