iOS Developer Library

Developer

AVFoundation Framework Reference AVAssetTrackSegment Class Reference

Options
Deployment Target:

On This Page
Language:

AVAssetTrackSegment

An AVAssetTrackSegment object represents a segment of an AVAssetTrack object, comprising of a time mapping from the source to the asset track timeline.

Inheritance


Conforms To


Import Statement


import AVFoundation @import AVFoundation;

Availability


Available in iOS 4.0 and later.
  • The time range of the track of the container file of the media presented by the segment. (read-only)

    Declaration

    Swift

    var timeMapping: CMTimeMapping { get }

    Objective-C

    @property(nonatomic, readonly) CMTimeMapping timeMapping

    Discussion

    Import Statement

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.

  • empty empty Property

    Indicates whether the segment is an empty segment (read-only)

    Declaration

    Swift

    var empty: Bool { get }

    Objective-C

    @property(nonatomic, readonly, getter=isEmpty) BOOL empty

    Discussion

    YEStrue if the segment is empty, otherwise NOfalse.

    Import Statement

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.