A concrete subclass of AVAsset
that's used to initialize an asset from a local or remote URL.
SDKs
- iOS 4.0+
- macOS 10.7+
- tvOS 9.0+
Framework
- AVFoundation
Declaration
class AVURLAsset : AVAsset
A concrete subclass of AVAsset
that's used to initialize an asset from a local or remote URL.
SDKs
Framework
class AVURLAsset : AVAsset
init(url: URL, options: [String)
Initializes an asset that models the media resource found at the specified URL.
Keys for options dictionary for use with init(url:
and URLAsset
.
var url: URL
The URL with which the asset was initialized.
var resource Loader: AVAsset Resource Loader
The resource loader associated with the asset.
func compatible Track(for: AVComposition Track) -> AVAsset Track?
Returns an asset track from which any time range can be inserted into a given composition track.
class func audiovisual MIMETypes() -> [String]
Returns an array of the MIME types the AVURLAsset
class supports.
class func audiovisual Types() -> [AVFile Type]
Returns an array of the file types the AVURLAsset
class supports.
class func is Playable Extended MIMEType(String) -> Bool
Returns a Boolean value that indicates whether the asset is playable with the given codec(s) and container type.
var asset Cache: AVAsset Cache?
The asset’s associated asset cache, if it exists.
var may Require Content Keys For Media Data Processing: Bool
Allows a URL asset to be added as a content key recipient to a content key session.
class AVAsset Download URLSession
A URL session used to support the creation and execution of asset download tasks.
class AVAsset Resource Loader
An object that mediates resource requests from a URL asset.
class AVAsset Resource Loading Request
An object that encapsulates information about a resource request issued by a resource loader object.
var response: URLResponse?
The URL response for the loading request.
class AVAsset Resource Renewal Request
An object that encapsulates information about a resource request issued by a resource loader to renew a previously issued request.
class AVAsset Resource Loading Content Information Request
A query used to get essential information about a resource referenced by an asset resource loading request.
class AVAsset Resource Loading Data Request
An object used to request data from a resource referenced by an asset resource loading request.
class AVAsset Download Storage Manager
A manager of policies used to automatically purge downloaded assets.
class AVAsset Download Storage Management Policy
A set of properties that defines a policy to automatically purge downloaded assets.
class AVMutable Asset Download Storage Management Policy
A mutable set of properties that defines a policy to automatically purge downloaded assets.