Platforms to show: All Mac Windows Linux Cross-Platform
AVAssetReaderSampleReferenceOutputMBS class
Super class: AVAssetReaderOutputMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundation | MBS AVFoundation Plugin | 14.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Clients can extract information about the location (file URL and offset) of samples in a track by adding an instance of AVAssetReaderSampleReferenceOutput to an AVAssetReader using the AVAssetReader.addOutput method. No actual sample data can be extracted using this class. The location of the sample data is described by the kCMSampleBufferAttachmentKey_SampleReferenceURL and kCMSampleBufferAttachmentKey_SampleReferenceByteOffset attachments on the extracted sample buffers. More information about sample buffers describing sample references can be found in the CMSampleBuffer documentation.
Sample buffers extracted using this class can also be appended to an AVAssetWriterInput to create movie tracks that are not self-contained and reference data in the original file instead. Currently, only instances of AVAssetWriter configured to write files of type AVFileTypeQuickTimeMovie can be used to write tracks that are not self-contained.
Since no sample data is ever returned by instances of AVAssetReaderSampleReferenceOutput, the value of the alwaysCopiesSampleData property is ignored.
Available on Mac OS X 10.10 or newer.
Subclass of the AVAssetReaderOutputMBS class.
- property track as AVAssetTrackMBS
- method Constructor(Track as AVAssetTrackMBS)
- shared method assetReaderSampleReferenceOutputWithTrack(track as AVAssetTrackMBS) as AVAssetReaderSampleReferenceOutputMBS
Super class AVAssetReaderOutputMBS
- 4 properties
- property alwaysCopiesSampleData as boolean
- property Handle as Integer
- property mediaType as string
- property supportsRandomAccess as Boolean
- 2 methods
- method Constructor Private
- method NextSampleBuffer as CMSampleBufferMBS
- shared method available as boolean
This class has no sub classes.
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVAssetReaderOutputMetadataAdaptorMBS - AVAssetReaderTrackOutputMBS