AVAsset 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.
- iOS 6.0+
- macOS 10.9+
- tvOS 9.0+
You do not create resource loader objects yourself. Instead, you retrieve a resource loader from the
resource 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 protocol. For more information, see
The AVARLDelegateDemo demonstrates using this class in a streaming environment.