Sets the delegate and dispatch queue for the receiver.
SDKs
- iOS 6.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- AVFoundation
Declaration
func setDelegate(_ delegate: AVPlayer Item Output Pull Delegate?, queue delegateQueue: Dispatch Queue?)
Parameters
delegate
The delegate object for the receiver. You may specify
nil
for this parameter.delegateQueue
The dispatch queue on which to call delegate methods. If you specify
nil
for this parameter, the video output object calls the delegate on the dispatch queue for your app’s main thread.