Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVPlayerItemLegibleOutputMBS class.

AVPlayerItemLegibleOutputMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The standard constructor.

See also:

AVPlayerItemLegibleOutputMBS.Constructor(subTypes() as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor.

Returns an instance of AVPlayerItemLegibleOutput with filtering enabled for AVPlayerItemLegibleOutputPushDelegate's legibleOutput:didOutputAttributedStrings:nativeSampleBuffers:forItemTime:.

subtypes: Array of strings with 4 letter codes.

Add media subtype FourCC number objects to the subtypes array to elect to receive that type as a CMSampleBuffer instead of an NSAttributedString. Initializing an AVPlayerItemLegibleOutput using the Constructor method is equivalent to calling Constructor with an empty array, which means that all legible data, regardless of media subtype, will be delivered using NSAttributedString 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 will occur. AVPlayerItemLegibleOutput will not vend closed caption data as CMSampleBuffers, so it is an error to include 'c608' in the media subtypes array.

See also:

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...