Contents

AVAsset

An object that models timed audiovisual media.

Declaration

class AVAsset

Mentioned in

Overview

An asset models file-based media like a QuickTime movie or an MP3 audio file, and also media streamed using HTTP Live Streaming (HLS). An asset is a container object for one or more instances of AVAssetTrack that model the uniformly typed tracks of media. The most commonly used track types are audio and video, but assets may also contain supplementary tracks, like closed captions, subtitles, and timed metadata.

[Image]

You load the tracks for an asset by asynchronously loading its tracks property. In some cases, you may want to perform operations on a subset of an asset’s tracks rather than on its complete collection. For those situations, an asset provides methods to retrieve subsets of tracks according to particular criteria, such as identifier, media type, or characteristic.

Topics

Creating an asset

Loading duration and timing

Loading tracks

Loading track groups

Loading metadata

Loading suitability

Loading asset preferences

Loading media selections

Loading chapter metadata

Loading content protections

Loading fragment support

Canceling property loading

Retrieving reference restrictions

Deprecated

Initializers

See Also

Assets