closedCaption
TypeScriptget closedCaption(): CMFormatDescription_MediaTypeSwift declarationstatic let closedCaption: CMFormatDescription.MediaTypeClosed-caption media
struct · iOS 13.0+ · SDK 27.1
struct MediaTypeThe type of media described by a `CMFormatDescription`.
get closedCaption(): CMFormatDescription_MediaTypeSwift declarationstatic let closedCaption: CMFormatDescription.MediaTypeClosed-caption media
get taggedBufferGroup(): CMFormatDescription_MediaTypeSwift declarationstatic let taggedBufferGroup: CMFormatDescription.MediaTypeTagged buffer group media
get text(): CMFormatDescription_MediaTypeSwift declarationstatic let text: CMFormatDescription.MediaTypeText media
get audio(): CMFormatDescription_MediaTypeSwift declarationstatic let audio: CMFormatDescription.MediaTypeAudio media
get muxed(): CMFormatDescription_MediaTypeSwift declarationstatic let muxed: CMFormatDescription.MediaTypeMuxed media
get video(): CMFormatDescription_MediaTypeSwift declarationstatic let video: CMFormatDescription.MediaTypeVideo media
get metadata(): CMFormatDescription_MediaTypeSwift declarationstatic let metadata: CMFormatDescription.MediaTypeMetadata media
init(rawValue: SDKHandle): CMFormatDescription_MediaTypeSwift declarationinit(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.
getRawValue($self: CMFormatDescription_MediaType): SDKHandleSwift declarationvar rawValue: CMMediaTypeThe 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"
setRawValue($self: CMFormatDescription_MediaType, value: SDKHandle): voidSwift declarationvar rawValue: CMMediaTypeThe 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 subtitle(): CMFormatDescription_MediaTypeSwift declarationstatic let subtitle: CMFormatDescription.MediaTypeSubtitle media
get timeCode(): CMFormatDescription_MediaTypeSwift declarationstatic let timeCode: CMFormatDescription.MediaTypeTimeCode media
No declarations were skipped in this snapshot.