Contents

CMFormatDescriptionGetMediaType(_:)

Returns the media type of a format description.

Declaration

func CMFormatDescriptionGetMediaType(_ desc: CMFormatDescription) -> CMMediaType

Parameters

  • desc:

    A CMFormatDescription to examine.

Return Value

A media type that identifies the format description.

Discussion

For example, this function returns kCMMediaType_Audio for a description of an audio stream.

See Also

Inspecting Format Descriptions