Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

AVAssetReaderOutputMetadataAdaptorMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class AVFoundation MBS AVFoundation Plugin 14.4 Yes No No Yes, macOS only No
Function: Creates a new timed metadata group adaptor for retrieving timed metadata group objects from an asset reader output.
assetReaderOutput: An instance of AVAssetReaderTrackOutput that vends sample buffers containing metadata, e.g. an AVAssetReaderTrackOutput object initialized with a track of media type AVMediaTypeMetadata and nil outputSettings.

Returns an instance of AVAssetReaderOutputMetadataAdaptor

It is an error to create a timed metadata group adaptor with an asset reader output that does not vend metadata. It is also an error to create a timed metadata group adaptor with an asset reader output whose asset reader has already started reading, or an asset reader output that already has been used to initialize another timed metadata group adaptor.

Clients should not mix calls to AVAssetReaderTrackOutput.NextSampleBuffer and AVAssetReaderOutputMetadataAdaptor.nextTimedMetadataGroup. Once an AVAssetReaderTrackOutput instance has been used to initialize an AVAssetReaderOutputMetadataAdaptor, calling NextSampleBuffer on that instance will result in an exception being thrown.

Available on Mac OS X 10.10 or newer.

Feedback, Comments & Corrections

This class has no sub classes.

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

AVAssetReaderOutputMBS   -   AVAssetReaderSampleReferenceOutputMBS

The biggest plugin in space...

MBS Xojo blog