Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

AVAssetWriterInputGroupMBS class

Super class: AVMediaSelectionGroupMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class AVFoundation MBS AVFoundation Plugin 14.0 Yes No No Yes, macOS only No
Function: The AVAssetWriterInputGroup class associates tracks corresponding to inputs with each other in a mutually exclusive relationship.
Notes:
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.

Feedback, Comments & Corrections

Super class AVMediaSelectionGroupMBS

This class has no sub classes.

Some methods using this class:


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


AVAssetTrackSegmentMBS   -   AVAssetWriterInputMBS




Links
MBS Xojo Plugins