Instance Property


The date at which a new resource loading request will be issued for resources that expire, if the media system still requires it.


var renewalDate: Date? { get set }


If the asset resource is prone to expiry set the value of this property to the date at which a renewal should be triggered. You must do this before you finish loading an AVAssetResourceLoadingRequest object. This value must be set sufficiently early enough to allow an AVAssetResourceRenewalRequest, delivered to the delegate’s resourceLoader:shouldWaitForRenewalOfRequestedResource: method ß to finish before the actual expiry time, otherwise media playback may fail.

See Also

Configuring Content Information

var allowedContentTypes: [String]?

The types of data that are accepted as a valid response for the requested resource.

var contentType: String?

The UTI that specifies the type of data contained by the requested resource.

var contentLength: Int64

The length, in bytes, of the requested resource.

var isByteRangeAccessSupported: Bool

A Boolean value that indicates whether random access to arbitrary ranges of bytes of the resource is supported.