AVCompositionTrack Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AVFoundation.framework
Availability
Available in iOS 4.0 and later.
Declared in
AVCompositionTrack.h

Overview

An AVCompositionTrack object provides the low-level representation of tracks a track in an AVComposition object, comprising a media type, a track identifier, and an array of AVCompositionTrackSegment objects, each comprising a URL, and track identifier, and a time mapping.

The timeMapping.target.start of the first track segment in a composition track is kCMTimeZero, and the timeMapping.target.start of each subsequent track segment equals CMTimeRangeGetEnd(<#previousTrackSegment#>.timeMapping.target).

The AVFoundation framework also provides a mutable subclass, AVMutableCompositionTrack.

Tasks

Accessing Track Segments

Properties

segments

The composition track’s track segments. (read-only)

@property(nonatomic, readonly, copy) NSArray *segments
Availability
  • Available in iOS 4.0 and later.
Declared In
AVCompositionTrack.h