Instance Property

timebase

The timebase information for the item.

Declaration

@property(nonatomic, readonly) CMTimebaseRef timebase;

Discussion

Timebase information is used to synchronize playback of the current item with the master clock. You can use this property to access the timebase information, but you cannot use it to set the time or rate of playback.

If you need to respond to changes in the effective playback rate, the best way to do so is to respond to notifications posted the player item’s timebase (see kCMTimebaseNotification_EffectiveRateChanged in <CoreMedia/CMSync.h>). These notifications reliably announce when the effective rate of playback changes, including any compensation needed for drifting behaviors of audio output hardware.

See Also

Inspecting a Player Item

asset

The asset provided during initialization.

automaticallyLoadedAssetKeys

The array of asset keys to be automatically loaded before the player item is ready to play.

tracks

An array of player item track objects.

status

The status of the player item.

AVPlayerItemStatus

The statuses for a player item.

duration

The duration of the item.

loadedTimeRanges

An array of time ranges indicating media data that is readily available.

presentationSize

The size at which the visual portion of the item is presented by the player.

timedMetadata

An array of the most recently encountered timed metadata.

Deprecated
error

The error that caused the player item to fail.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software