Instance Method

setDelegate(_:queue:)

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

Declaration

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

Parameters

delegate

An object conforming to AVPlayerItemMetadataOutputPushDelegate protocol.

delegateQueue

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

Discussion

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.