Instance Property

totalSampleDataLength

The total number of bytes of sample data required by the track.

Declaration

var totalSampleDataLength: Int64 { get }

Discussion

The value may be 0 if the total sample data length cannot be determined.

See Also

Retrieving Track Information

var asset: AVAsset?

The asset of which the track is a part.

var trackID: CMPersistentTrackID

The persistent unique identifier for this track.

var mediaType: AVMediaType

The media type for the track.

func hasMediaCharacteristic(AVMediaCharacteristic) -> Bool

Returns a Boolean value that indicates whether the track references media with the specified media characteristic.

struct AVMediaCharacteristic

The options for specifying media type characteristics.

var formatDescriptions: [Any]

The format descriptions of the media samples referenced by the track.

var isEnabled: Bool

A Boolean value that indicates whether the track is enabled according to the state stored in its container.

var isPlayable: Bool

A Boolean value that indicates whether the track is playable in the current environment.

var isSelfContained: Bool

A Boolean value that indicates whether the track references sample data contained only within its storage container.

var estimatedDataRate: Float

The estimated data rate, in bits per second, of the media data referenced by the track.

var isDecodable: Bool

A Boolean value that indicates whether the receiver is decodable in the current environment.