iOS Developer Library

Developer

AVFoundation Framework Reference AVComposition Class Reference

Options
Deployment Target:

On This Page
Language:

AVComposition

An AVComposition object combines media data from multiple file-based sources in a custom temporal arrangement, in order to present or process media data from multiple sources together. All file-based audiovisual assets are eligible to be combined, regardless of container type. The tracks in an AVComposition object are fixed; to change the tracks, you use an instance of its subclass, AVMutableComposition. More...

Inheritance


Import Statement


import AVFoundation @import AVFoundation;

Availability


Available in iOS 4.0 and later.
  • tracks tracks Property

    An array of AVCompositionTrack objects contained by the composition. (read-only)

    Declaration

    Swift

    var tracks: [AnyObject]! { get }

    Objective-C

    @property(nonatomic, readonly) NSArray *tracks

    Import Statement

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.

  • Indicates the authored size of the visual portion of the composition. (read-only)

    Declaration

    Swift

    var naturalSize: CGSize { get }

    Objective-C

    @property(nonatomic, readonly) CGSize naturalSize

    Import Statement

    import AVFoundation

    Availability

    Available in iOS 5.0 and later.