Contents

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

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