One Logo Pool Ball
CoreMedia · IOS API REFERENCE

CMFormatDescription.MediaType

struct · iOS 13.0+ · SDK 27.1

struct MediaType

The type of media described by a `CMFormatDescription`.

Members (12)

get · iOS 13.0+

closedCaption

TypeScript
get closedCaption(): CMFormatDescription_MediaType
Swift declaration
static let closedCaption: CMFormatDescription.MediaType

Closed-caption media

get · iOS 13.0+

taggedBufferGroup

TypeScript
get taggedBufferGroup(): CMFormatDescription_MediaType
Swift declaration
static let taggedBufferGroup: CMFormatDescription.MediaType

Tagged buffer group media

get · iOS 13.0+

text

TypeScript
get text(): CMFormatDescription_MediaType
Swift declaration
static let text: CMFormatDescription.MediaType

Text media

get · iOS 13.0+

audio

TypeScript
get audio(): CMFormatDescription_MediaType
Swift declaration
static let audio: CMFormatDescription.MediaType

Audio media

get · iOS 13.0+

muxed

TypeScript
get muxed(): CMFormatDescription_MediaType
Swift declaration
static let muxed: CMFormatDescription.MediaType

Muxed media

get · iOS 13.0+

video

TypeScript
get video(): CMFormatDescription_MediaType
Swift declaration
static let video: CMFormatDescription.MediaType

Video media

get · iOS 13.0+

metadata

TypeScript
get metadata(): CMFormatDescription_MediaType
Swift declaration
static let metadata: CMFormatDescription.MediaType

Metadata media

init · iOS 13.0+

init

TypeScript
init(rawValue: SDKHandle): CMFormatDescription_MediaType
Swift declaration
init(rawValue: CMMediaType)

Creates a new instance with the specified raw value. If there is no value of the type that corresponds with the specified raw value, this initializer returns `nil`. For example: enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil" - Parameter rawValue: The raw value to use for the new instance.

get · iOS 13.0+

rawValue

TypeScript
getRawValue($self: CMFormatDescription_MediaType): SDKHandle
Swift declaration
var rawValue: CMMediaType

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

set · iOS 13.0+

rawValue

TypeScript
setRawValue($self: CMFormatDescription_MediaType, value: SDKHandle): void
Swift declaration
var rawValue: CMMediaType

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

get · iOS 13.0+

subtitle

TypeScript
get subtitle(): CMFormatDescription_MediaType
Swift declaration
static let subtitle: CMFormatDescription.MediaType

Subtitle media

get · iOS 13.0+

timeCode

TypeScript
get timeCode(): CMFormatDescription_MediaType
Swift declaration
static let timeCode: CMFormatDescription.MediaType

TimeCode media

Skipped declarations

No declarations were skipped in this snapshot.

All CoreMedia types →