The AVAssetResourceLoaderDelegate protocol defines a method that lets your code handle resource loading requests coming from an AVURLAsset object.


A class should adopt this protocol when associated with the asset’s resource loader—that is, an instance of the AVAssetResourceLoader class. The resource loader works with your delegate to process the request.


Processing Resource Requests

func resourceLoader(AVAssetResourceLoader, didCancel: AVAssetResourceLoadingRequest)

Invoked to inform the delegate that a prior loading request has been cancelled

Processing Authentication Challenges

func resourceLoader(AVAssetResourceLoader, didCancel: URLAuthenticationChallenge)

Informs the delegate that a prior authentication challenge has been cancelled.

func resourceLoader(AVAssetResourceLoader, shouldWaitForResponseTo: URLAuthenticationChallenge)

Invoked when assistance is required of the application to respond to an authentication challenge.


Inherits From