Contents

tracks

An array of player item track objects.

Declaration

nonisolated var tracks: [AVPlayerItemTrack] { get }

Discussion

The value is an empty array before the player loads the underlying tracks. Key-value observe this property value to access valid tracks as soon as they’re available.