Instance Method

hasMediaCharacteristic:

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

Declaration

- (BOOL)hasMediaCharacteristic:(AVMediaCharacteristic)mediaCharacteristic;

Parameters

mediaCharacteristic

The media characteristic of interest.

For possible values, such as AVMediaCharacteristicVisual, AVMediaCharacteristicAudible, or AVMediaCharacteristicLegible, see Media Characteristics in AVFoundation Constants.

Return Value

YES if the track references media with the specified characteristic, otherwise NO.

See Also

Retrieving Track Information

asset

The asset of which the track is a part.

trackID

The persistent unique identifier for this track.

mediaType

The media type for the track.

AVMediaCharacteristic

The options for specifying media type characteristics.

formatDescriptions

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

enabled

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

playable

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

selfContained

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

estimatedDataRate

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

totalSampleDataLength

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

decodable

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