Instance Method

hasMediaCharacteristic(_:)

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

Declaration

func hasMediaCharacteristic(_ mediaCharacteristic: AVMediaCharacteristic) -> Bool

Parameters

mediaCharacteristic

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.