iOS Developer Library

Developer

AVFoundation Framework Reference AVAssetTrackSegment Class Reference

Options
Deployment Target:

On This Page
Language:

AVAssetTrackSegment

Inherits From


Conforms To


Import Statement


Swift

import AVFoundation

Objective-C

@import AVFoundation;

Availability


Available in iOS 4.0 and later

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

  • 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

    Objective-C

    @import AVFoundation;

    Swift

    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

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 4.0 and later