Creates an initialized legible-output object.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
An initialized instance of
When creating an instance you add media subtype FourCC codes as
NSNumber objects to the
subtypes array to elect to receive that type as a
CMSample instead of an attributed string. FourCC codes are converted to
NSNumber objects as shown:
AVPlayer using the
init method (which is preferred) is equivalent to calling this method with an empty
subtypes array, which means that all legible data, regardless of media subtype, is delivered using
NSAttributed instances in a common format.
If a media subtype for which there is no legible data in the current player item is included in the media
subtypes array, no error occurs. An
AVPlayer instance doesn’t vend closed caption data as a
CMSample, so it is an error to include
'c608' in the media subtypes array.