Platforms to show: All Mac Windows Linux Cross-Platform
AVAssetWriterInputGroupMBS class
Super class: AVMediaSelectionGroupMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundation | MBS AVFoundation Plugin | 14.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This class is used to associate tracks corresponding to multiple AVAssetWriterInput instances as mutually exclusive to each other for playback or other processing.
For example, if you are creating an asset with multiple audio tracks using different spoken languages–and only one track should be played at a time–group the inputs corresponding to those tracks into a single instance of AVAssetWriterInputGroup and add the group to the AVAssetWriter instance using the AVAssetWriter method addInputGroup:. If the output format supports mutually exclusive relationships among tracks, the AVAssetWriter marks the tracks as mutually exclusive to each other.
Because the AVAssetWriterInputGroup class is a subclass of the AVMediaSelectionGroup class, clients can examine the media selection options that are available on the output asset before the asset is written. The best results for examining the options of the AVAssetWriterInputGroup are obtained after associating the AVAssetWriterInput instances of the AVAssetTrack objects as appropriate using the AVAssetWriterInput method addTrackAssociationWithTrackOfInput and by initializing each AVAssetWriterInput with a source format hint, where appropriate.
Subclass of the AVMediaSelectionGroupMBS class.
- property defaultInput as AVAssetWriterInputMBS
- 2 methods
- method Constructor(inputs() as AVAssetWriterInputMBS, defaultInput as AVAssetWriterInputMBS)
- method inputs as AVAssetWriterInputMBS()
- shared method assetWriterInputGroupWithInputs(inputs() as AVAssetWriterInputMBS, defaultInput as AVAssetWriterInputMBS) as AVAssetWriterInputGroupMBS
Super class AVMediaSelectionGroupMBS
- 2 properties
- property allowsEmptySelection as boolean
- property Handle as Integer
- 4 methods
- method Constructor
- method copy as AVMediaSelectionGroupMBS
- method mediaSelectionOptionWithPropertyList(plist as Variant) as AVMediaSelectionOptionMBS
- method options as AVMediaSelectionOptionMBS()
- 7 shared methods
- shared method available as boolean
- shared method mediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages(mediaSelectionOptions() as AVMediaSelectionOptionMBS) as AVMediaSelectionOptionMBS()
- shared method mediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages(mediaSelectionOptions() as AVMediaSelectionOptionMBS, preferredLanguages() as string) as AVMediaSelectionOptionMBS()
- shared method mediaSelectionOptionsFromArrayWithLocale(mediaSelectionOptions() as AVMediaSelectionOptionMBS, locale as NSLocaleMBS) as AVMediaSelectionOptionMBS()
- shared method mediaSelectionOptionsFromArrayWithMediaCharacteristics(mediaSelectionOptions() as AVMediaSelectionOptionMBS, mediaCharacteristics() as string) as AVMediaSelectionOptionMBS()
- shared method mediaSelectionOptionsFromArrayWithoutMediaCharacteristics(mediaSelectionOptions() as AVMediaSelectionOptionMBS, mediaCharacteristics() as string) as AVMediaSelectionOptionMBS()
- shared method playableMediaSelectionOptionsFromArray(mediaSelectionOptions() as AVMediaSelectionOptionMBS) as AVMediaSelectionOptionMBS()
This class has no sub classes.
Some methods using this class:
- AVAssetWriterMBS.addInputGroup(inputGroup as AVAssetWriterInputGroupMBS)
- AVAssetWriterMBS.canAddInputGroup(input as AVAssetWriterInputGroupMBS) as boolean
- AVAssetWriterMBS.inputGroups as AVAssetWriterInputGroupMBS()
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVAssetTrackSegmentMBS - AVAssetWriterInputMBS