setDelegate(_:queue:)
Sets the delegate and a dispatch queue on which the delegate is called.
Declaration
func setDelegate(_ delegate: (any AVPlayerItemMetadataOutputPushDelegate)?, queue delegateQueue: dispatch_queue_t?)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.