Instance Method


Returns a Boolean value that indicates whether the receiver has media with the given media characteristic.


func hasMediaCharacteristic(_ mediaCharacteristic: AVMediaCharacteristic) -> Bool



The media characteristic of interest, for example, visual, audible, or legible.

Return Value

true if the media selection option has media with mediaCharacteristic, otherwise false.

See Also

Managing Media Types

var mediaType: AVMediaType

The media type of the media data.

var mediaSubTypes: [NSNumber]

The media sub-types of the media data associated with the option.