AVPlayerItemTrack Class Reference

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

Overview

You use an AVPlayerItemTrack object to modify the presentation state of an asset track (AVAssetTrack) being presented by an AVPlayer object.

Tasks

Getting Properties

Properties

assetTrack

The asset track for which the player item represents presentation state. (read-only)

@property(nonatomic, readonly) AVAssetTrack *assetTrack
Discussion

Clients must serialize their access to the resulting AVAssetTrack and related objects on the associated AVPlayer instance’s notification queue. By default, this queue is the main queue.

This property is not key-value observable.

Availability
  • Available in iOS 4.0 and later.
Declared In
AVPlayerItemTrack.h

currentVideoFrameRate

For video media types, indicates the current frame rate of the track as it plays. (read-only)

@property(nonatomic, readonly) float currentVideoFrameRate
Discussion

If the media type of the assetTrack is AVMediaTypeVideo, the property indicates the current frame rate of the track as it plays, in units of frames per second.

If the item is not playing, or if the media type of the track is not video, the value of this property is 0.0.

This property is not key-value observable.

Availability
  • Available in iOS 7.0 and later.
Declared In
AVPlayerItemTrack.h

enabled

Indicates whether the track is enabled for presentation during playback.

@property(nonatomic, assign, getter=isEnabled) BOOL enabled
Discussion

This property is not key-value observable.

Availability
  • Available in iOS 4.0 and later.
Declared In
AVPlayerItemTrack.h