Class

AVAsset​Resource​Loader

An AVAsset​Resource​Loader object mediates resource requests from an AVURLAsset object with a delegate object that you provide. When a request arrives, the resource loader asks your delegate if it is able to handle the request and reports the results back to the asset.

Overview

You do not create resource loader objects yourself. Instead, you retrieve a resource loader from the resource​Loader property of an AVURLAsset object and use it to assign your custom delegate object.

The delegate you associate with this object must adopt the AVAsset​Resource​Loader​Delegate protocol. For more information, see AVAsset​Resource​Loader​Delegate.

The AVARLDelegateDemo demonstrates using this class in a streaming environment.

Symbols

Accessing the Delegate

func set​Delegate(AVAsset​Resource​Loader​Delegate?, queue:​ Dispatch​Queue?)

Sets the delegate and dispatch queue to use with the resource loader.

var delegate:​ AVAsset​Resource​Loader​Delegate?

The delegate object to use when handling resource requests.

Getting the Dispatch Queue

var delegate​Queue:​ Dispatch​Queue?

The dispatch queue to use when handling resource requests.

Relationships

Inherits From