public class AVMutableMovie extends AVMovie
AVMutableMovie adds to its immutable superclass, AVMovie, several categories of methods for editing QuickTime movie files, e.g. inserting and removing time ranges of media, adding and removing tracks, and modifying the metadata collections stored therein.
By default, after creating an AVMutableMovie the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AVMutableMovie.Block_loadTracksWithMediaCharacteristicCompletionHandler |
static interface |
AVMutableMovie.Block_loadTracksWithMediaTypeCompletionHandler |
static interface |
AVMutableMovie.Block_loadTrackWithTrackIDCompletionHandler |
AVAsset.Block_findUnusedTrackIDWithCompletionHandler, AVAsset.Block_loadChapterMetadataGroupsBestMatchingPreferredLanguagesCompletionHandler, AVAsset.Block_loadChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeysCompletionHandler, AVAsset.Block_loadMediaSelectionGroupForMediaCharacteristicCompletionHandler, AVAsset.Block_loadMetadataForFormatCompletionHandlerNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retAVAsynchronousKeyValueLoading.Block_loadValuesAsynchronouslyForKeysCompletionHandler| Modifier | Constructor and Description |
|---|---|
protected |
AVMutableMovie(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
NSArray<? extends AVMutableMovieTrack> |
addMutableTracksCopyingSettingsFromTracksOptions(NSArray<? extends AVAssetTrack> existingTracks,
NSDictionary<java.lang.String,?> options)
addMutableTracksCopyingSettingsFromTracks:options:
|
AVMutableMovieTrack |
addMutableTrackWithMediaTypeCopySettingsFromTrackOptions(java.lang.String mediaType,
AVAssetTrack track,
NSDictionary<java.lang.String,?> options)
addMutableTrackWithMediaType:copySettingsFromTrack:options:
|
static AVMutableMovie |
alloc() |
static AVMutableMovie |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static AVMutableMovie |
assetWithURL(NSURL URL) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
AVMediaDataStorage |
defaultMediaDataStorage()
[@property] defaultMediaDataStorage
|
static java.lang.String |
description_static() |
static long |
hash_static() |
AVMutableMovie |
init() |
AVMutableMovie |
initWithDataOptions(NSData data,
NSDictionary<java.lang.String,?> options)
initWithData:options:
|
AVMutableMovie |
initWithDataOptionsError(NSData data,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
initWithData:options:error:
|
AVMutableMovie |
initWithSettingsFromMovieOptionsError(AVMovie movie,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
initWithSettingsFromMovie:options:error:
|
AVMutableMovie |
initWithURLOptions(NSURL URL,
NSDictionary<java.lang.String,?> options)
initWithURL:options:
|
AVMutableMovie |
initWithURLOptionsError(NSURL URL,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
initWithURL:options:error:
|
void |
insertEmptyTimeRange(CMTimeRange timeRange)
insertEmptyTimeRange:
|
boolean |
insertTimeRangeOfAssetAtTimeCopySampleDataError(CMTimeRange timeRange,
AVAsset asset,
CMTime startTime,
boolean copySampleData,
org.moe.natj.general.ptr.Ptr<NSError> outError)
insertTimeRange:ofAsset:atTime:copySampleData:error:
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
CMTime |
interleavingPeriod()
[@property] interleavingPeriod
|
boolean |
isModified()
[@property] modified
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
void |
loadTracksWithMediaCharacteristicCompletionHandler(java.lang.String mediaCharacteristic,
AVMutableMovie.Block_loadTracksWithMediaCharacteristicCompletionHandler completionHandler)
loadTracksWithMediaCharacteristic:completionHandler:
|
void |
loadTracksWithMediaTypeCompletionHandler(java.lang.String mediaType,
AVMutableMovie.Block_loadTracksWithMediaTypeCompletionHandler completionHandler)
loadTracksWithMediaType:completionHandler:
|
void |
loadTrackWithTrackIDCompletionHandler(int trackID,
AVMutableMovie.Block_loadTrackWithTrackIDCompletionHandler completionHandler)
loadTrackWithTrackID:completionHandler:
|
NSArray<? extends AVMetadataItem> |
metadata()
[@property] metadata
|
static NSArray<java.lang.String> |
movieTypes() |
static AVMutableMovie |
movieWithDataOptions(NSData data,
NSDictionary<java.lang.String,?> options) |
static AVMutableMovie |
movieWithDataOptionsError(NSData data,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
movieWithData:options:error:
|
static AVMutableMovie |
movieWithSettingsFromMovieOptionsError(AVMovie movie,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
movieWithSettingsFromMovie:options:error:
|
static AVMutableMovie |
movieWithURLOptions(NSURL URL,
NSDictionary<java.lang.String,?> options) |
static AVMutableMovie |
movieWithURLOptionsError(NSURL URL,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> outError)
movieWithURL:options:error:
|
AVMutableMovieTrack |
mutableTrackCompatibleWithTrack(AVAssetTrack track)
mutableTrackCompatibleWithTrack:
|
static AVMutableMovie |
new_objc() |
float |
preferredRate()
[@property] preferredRate
|
CGAffineTransform |
preferredTransform()
[@property] preferredTransform
|
float |
preferredVolume()
[@property] preferredVolume
|
void |
removeTimeRange(CMTimeRange timeRange)
removeTimeRange:
|
void |
removeTrack(AVMovieTrack track)
removeTrack:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
scaleTimeRangeToDuration(CMTimeRange timeRange,
CMTime duration)
scaleTimeRange:toDuration:
|
void |
setDefaultMediaDataStorage(AVMediaDataStorage value)
[@property] defaultMediaDataStorage
|
void |
setInterleavingPeriod(CMTime value)
[@property] interleavingPeriod
|
void |
setMetadata(NSArray<? extends AVMetadataItem> value)
[@property] metadata
|
void |
setModified(boolean value)
[@property] modified
|
void |
setPreferredRate(float value)
[@property] preferredRate
|
void |
setPreferredTransform(CGAffineTransform value)
[@property] preferredTransform
|
void |
setPreferredVolume(float value)
[@property] preferredVolume
|
void |
setTimescale(int value)
[@property] timescale
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
int |
timescale()
[@property] timescale
|
NSArray<? extends AVMutableMovieTrack> |
tracks()
[@property] tracks
|
NSArray<? extends AVMutableMovieTrack> |
tracksWithMediaCharacteristic(java.lang.String mediaCharacteristic)
tracksWithMediaCharacteristic:
|
NSArray<? extends AVMutableMovieTrack> |
tracksWithMediaType(java.lang.String mediaType)
tracksWithMediaType:
|
AVMutableMovieTrack |
trackWithTrackID(int trackID)
trackWithTrackID:
|
static long |
version_static() |
canContainMovieFragments, containsMovieFragments, copyWithZone, data, isCompatibleWithFileType, loadTracksWithMediaCharacteristicCompletionHandler, loadTracksWithMediaTypeCompletionHandler, loadTrackWithTrackIDCompletionHandler, movieHeaderWithFileTypeError, mutableCopyWithZone, URL, writeMovieHeaderToURLFileTypeOptionsErrorallMediaSelections, availableChapterLocales, availableMediaCharacteristicsWithMediaSelectionOptions, availableMetadataFormats, cancelLoading, canContainFragments, chapterMetadataGroupsBestMatchingPreferredLanguages, chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys, commonMetadata, containsFragments, creationDate, duration, findUnusedTrackIDWithCompletionHandler, hasProtectedContent, isCompatibleWithAirPlayVideo, isCompatibleWithSavedPhotosAlbum, isComposable, isExportable, isPlayable, isReadable, loadChapterMetadataGroupsBestMatchingPreferredLanguagesCompletionHandler, loadChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeysCompletionHandler, loadMediaSelectionGroupForMediaCharacteristicCompletionHandler, loadMetadataForFormatCompletionHandler, loadTracksWithMediaCharacteristicCompletionHandler, loadTracksWithMediaTypeCompletionHandler, loadTrackWithTrackIDCompletionHandler, loadValuesAsynchronouslyForKeysCompletionHandler, lyrics, mediaSelectionGroupForMediaCharacteristic, metadataForFormat, minimumTimeOffsetFromLive, naturalSize, overallDurationHint, preferredMediaSelection, providesPreciseDurationAndTiming, referenceRestrictions, statusOfValueForKeyError, trackGroups, unusedTrackIDaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public AVMutableMovieTrack addMutableTrackWithMediaTypeCopySettingsFromTrackOptions(java.lang.String mediaType, AVAssetTrack track, NSDictionary<java.lang.String,?> options)
Adds an empty track to the target movie.
The trackID of the newly added track is a property of the returned instance of AVMutableMovieTrack.
mediaType - The media type of the new track (e.g. AVMediaTypeVideo for a video track).track - If you wish to transfer settings from an existing track, including track userdata and metadata, width, height, preferred volume, etc., pass a reference to an AVAssetTrack representing that track. Otherwise pass nil.options - An NSDictionary object that contains keys for specifying options for the initialization of the new AVMutableMovieTrack object. Pass nil for default initialization behavior.public NSArray<? extends AVMutableMovieTrack> addMutableTracksCopyingSettingsFromTracksOptions(NSArray<? extends AVAssetTrack> existingTracks, NSDictionary<java.lang.String,?> options)
Adds one or more empty tracks to the target movie, copying track settings from the source tracks.
This method creates one or more empty tracks in the target movie and configures those tracks with settings (such as track userdata and metadata, width, height, and preferred volume) copied from the source tracks in the existingTracks array. Also, properties involving pairs of tracks (such as track references) are copied from the source tracks to the target tracks.
existingTracks - An array of AVAssetTrack objects.options - An NSDictionary object that contains keys for specifying options for the initialization of the new AVMutableMovieTrack objects. Pass nil for default initialization behavior.public static AVMutableMovie alloc()
public static AVMutableMovie allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static AVMutableMovie assetWithURL(NSURL URL)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public AVMediaDataStorage defaultMediaDataStorage()
The default storage container for media data added to a movie.
The value of this property is an AVMediaDataStorage object that indicates where sample data that is added to a movie should be written, for any track for whose mediaDataStorage property is nil.
defaultMediaDataStorage in class AVMoviepublic static java.lang.String description_static()
public static long hash_static()
public AVMutableMovie init()
public AVMutableMovie initWithDataOptions(NSData data, NSDictionary<java.lang.String,?> options)
AVMovieCreates an AVMovie object from a movie header stored in an NSData object.
You can use this method to operate on movie headers that are not stored in files. In general you should avoid loading an entire movie file with its media data into an instance of NSData!
By default, the defaultMediaDataStorage property will be nil and each associated AVMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
initWithDataOptions in class AVMoviedata - An NSData object containing a movie header.options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMovie object.public AVMutableMovie initWithDataOptionsError(NSData data, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> outError)
Creates an AVMutableMovie object from a movie header stored in an NSData object.
You can use this method to operate on movie headers that are not stored in files. In general you should avoid loading an entire movie file with its media data into an instance of NSData!
By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
data - An NSData object containing a movie header.options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object.outError - If an error occurs creating a movie, describes the nature of the failure.public AVMutableMovie initWithSettingsFromMovieOptionsError(AVMovie movie, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> outError)
Creates an AVMutableMovie object without tracks (and therefore without media).
By default, the defaultMediaDataStorage property will be nil and each associated AVMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
movie - If you wish to transfer settings from an existing movie (including movie userdata and metadata, preferred rate, preferred volume, etc.), pass a reference to an AVMovie object representing that movie. Otherwise pass nil. The userdata and metadata from the source movie may need to be converted if the format of that movie differs from fileType; you may wish to inspect the userdata or metadata of the receiver to ensure that important data was copied.options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Pass nil for default initialization behavior.outError - If an error occurs creating a movie, describes the nature of the failure.public AVMutableMovie initWithURLOptions(NSURL URL, NSDictionary<java.lang.String,?> options)
AVMovieCreates an AVMovie object from a movie header stored in a QuickTime movie file or ISO base media file.
By default, the defaultMediaDataStorage property will be nil and each associated AVMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
initWithURLOptions in class AVMovieURL - An NSURL object that specifies a file containing a movie header.options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMovie object.public AVMutableMovie initWithURLOptionsError(NSURL URL, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> outError)
Creates an AVMutableMovie object from a movie header stored in a QuickTime movie file or ISO base media file.
By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
URL - An NSURL object that specifies a file containing a movie header.options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object.outError - If an error occurs creating a movie, describes the nature of the failure.public void insertEmptyTimeRange(CMTimeRange timeRange)
Adds an empty time range to the target movie.
timeRange - The time range to be made empty. Note that you cannot add empty time ranges to the end of a movie.public boolean insertTimeRangeOfAssetAtTimeCopySampleDataError(CMTimeRange timeRange, AVAsset asset, CMTime startTime, boolean copySampleData, org.moe.natj.general.ptr.Ptr<NSError> outError)
Inserts all the tracks of a timeRange of an asset into a movie.
This method may add new tracks to the target movie to ensure that all tracks of the asset are represented in the inserted timeRange. Existing content at the specified startTime will be pushed out by the duration of timeRange.
timeRange - The time range of the asset to be inserted.asset - An AVAsset object indicating the source of the inserted media. Only instances of AVURLAsset and AVComposition are supported.
Must not be nil.startTime - The time in the target movie at which the media is to be inserted.copySampleData - A BOOL value that indicates whether sample data is to be copied from the source to the destination during edits.
If YES, the sample data is written to the location specified by the track property mediaDataStorage if non-nil,
or else by the movie property defaultMediaDataStorage if non-nil; if both are nil, the method will fail and return NO.
If NO, sample data will not be written and sample references to the samples in their original container will be added as necessary.
Note that in this case, this method will fail if the source AVAsset is not able to provide sample reference information for the original container.outError - If the insertion fails, an NSError object that describes the nature of the failure.public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public CMTime interleavingPeriod()
A CMTime that indicates the duration for interleaving runs of samples of each track.
The default interleaving period is 0.5 seconds.
public boolean isModified()
Whether a movie has been modified.
The value of this property is a BOOL that indicates whether the AVMutableMovie object has been modified since it was created, was last written, or had its modified state cleared via a call to setModified:NO.
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public NSArray<? extends AVMetadataItem> metadata()
A collection of metadata stored by the movie.
The value of this property is an array of AVMetadataItem objects representing the collection of metadata stored by the movie.
public static NSArray<java.lang.String> movieTypes()
public static AVMutableMovie movieWithDataOptions(NSData data, NSDictionary<java.lang.String,?> options)
public static AVMutableMovie movieWithDataOptionsError(NSData data, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> outError)
Creates an AVMutableMovie object from a movie header stored in an NSData object.
You can use this method to operate on movie headers that are not stored in files. In general you should avoid loading an entire movie file with its media data into an instance of NSData!
By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
data - An NSData object containing a movie header.options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object.outError - If an error occurs creating a movie, describes the nature of the failure.public static AVMutableMovie movieWithSettingsFromMovieOptionsError(AVMovie movie, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> outError)
Creates an AVMutableMovie object without tracks (and therefore without media).
By default, the defaultMediaDataStorage property will be nil and each associated AVMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
movie - If you wish to transfer settings from an existing movie (including movie userdata and metadata, preferred rate, preferred volume, etc.), pass a reference to an AVMovie object representing that movie. Otherwise pass nil. The userdata and metadata from the source movie may need to be converted if the format of that movie differs from fileType; you may wish to inspect the userdata or metadata of the receiver to ensure that important data was copied.options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Pass nil for default initialization behavior.outError - If an error occurs creating a movie, describes the nature of the failure.public static AVMutableMovie movieWithURLOptions(NSURL URL, NSDictionary<java.lang.String,?> options)
public static AVMutableMovie movieWithURLOptionsError(NSURL URL, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> outError)
Creates an AVMutableMovie object from a movie header stored in a QuickTime movie file or ISO base media file.
By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
URL - An NSURL object that specifies a file containing a movie header.options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object.outError - If an error occurs creating a movie, describes the nature of the failure.public AVMutableMovieTrack mutableTrackCompatibleWithTrack(AVAssetTrack track)
Provides a reference to a track of a mutable movie into which any time range of an AVAssetTrack can be inserted (via -[AVMutableMovieTrack insertTimeRange:ofTrack:atTime:copySampleData:error:]).
For best performance, the number of tracks in a movie should be kept to a minimum, corresponding to the number for which media data must be presented in parallel. If media data of the same type is to be presented serially, even from multiple assets, a single track of that media type should be used. This method, -mutableTrackCompatibleWithTrack:, can help the client to identify an existing target track for an insertion.
track - A reference to the AVAssetTrack from which a time range may be inserted.public static AVMutableMovie new_objc()
public float preferredRate()
The natural rate at which the movie is to be played; often but not always 1.0.
preferredRate in class AVAssetpublic CGAffineTransform preferredTransform()
A CGAffineTransform indicating the transform specified in the movie's storage container as the preferred transformation of the visual media data for display purposes; the value is often but not always CGAffineTransformIdentity.
preferredTransform in class AVAssetpublic float preferredVolume()
The preferred volume of the audible media data of the movie; often but not always 1.0.
preferredVolume in class AVAssetpublic void removeTimeRange(CMTimeRange timeRange)
Removes a specified time range from a movie.
timeRange - The time range to be removed.public void removeTrack(AVMovieTrack track)
Removes a track from the target movie.
track - The track to be removed.public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void scaleTimeRangeToDuration(CMTimeRange timeRange, CMTime duration)
Changes the duration of a time range of a movie.
timeRange - The time range to be scaled.duration - The new duration of the time range.public void setDefaultMediaDataStorage(AVMediaDataStorage value)
The default storage container for media data added to a movie.
The value of this property is an AVMediaDataStorage object that indicates where sample data that is added to a movie should be written, for any track for whose mediaDataStorage property is nil.
public void setInterleavingPeriod(CMTime value)
A CMTime that indicates the duration for interleaving runs of samples of each track.
The default interleaving period is 0.5 seconds.
public void setMetadata(NSArray<? extends AVMetadataItem> value)
A collection of metadata stored by the movie.
The value of this property is an array of AVMetadataItem objects representing the collection of metadata stored by the movie.
public void setModified(boolean value)
Whether a movie has been modified.
The value of this property is a BOOL that indicates whether the AVMutableMovie object has been modified since it was created, was last written, or had its modified state cleared via a call to setModified:NO.
public void setPreferredRate(float value)
The natural rate at which the movie is to be played; often but not always 1.0.
public void setPreferredTransform(CGAffineTransform value)
A CGAffineTransform indicating the transform specified in the movie's storage container as the preferred transformation of the visual media data for display purposes; the value is often but not always CGAffineTransformIdentity.
public void setPreferredVolume(float value)
The preferred volume of the audible media data of the movie; often but not always 1.0.
public void setTimescale(int value)
For file types that contain a 'moov' atom, such as QuickTime Movie files, specifies the time scale of the movie.
The default movie time scale is 600. In certain cases, you may want to set this to a different value. For instance, a movie that contains a single audio track should typically have the movie time scale set to the media time scale of that track.
This property should be set on a new empty movie before any edits are performed on the movie.
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public int timescale()
For file types that contain a 'moov' atom, such as QuickTime Movie files, specifies the time scale of the movie.
The default movie time scale is 600. In certain cases, you may want to set this to a different value. For instance, a movie that contains a single audio track should typically have the movie time scale set to the media time scale of that track.
This property should be set on a new empty movie before any edits are performed on the movie.
public AVMutableMovieTrack trackWithTrackID(int trackID)
Provides an instance of AVMutableMovieTrack that represents the track of the specified trackID.
Becomes callable without blocking when the key @"tracks" has been loaded
trackWithTrackID in class AVMovietrackID - The trackID of the requested AVMutableMovieTrack.public NSArray<? extends AVMutableMovieTrack> tracks()
The tracks in a mutable movie.
The value of this property is an array of tracks the mutable movie contains; the tracks are of type AVMutableMovieTrack.
public NSArray<? extends AVMutableMovieTrack> tracksWithMediaCharacteristic(java.lang.String mediaCharacteristic)
Provides an array of AVMutableMovieTracks of the asset that present media with the specified characteristic.
Becomes callable without blocking when the key @"tracks" has been loaded
tracksWithMediaCharacteristic in class AVMoviemediaCharacteristic - The media characteristic according to which the receiver filters its AVMutableMovieTracks. (Media characteristics are defined in AVMediaFormat.h)public NSArray<? extends AVMutableMovieTrack> tracksWithMediaType(java.lang.String mediaType)
Provides an array of AVMutableMovieTracks of the asset that present media of the specified media type.
Becomes callable without blocking when the key @"tracks" has been loaded
tracksWithMediaType in class AVMoviemediaType - The media type according to which the receiver filters its AVMutableMovieTracks. (Media types are defined in AVMediaFormat.h)public static long version_static()
public void loadTrackWithTrackIDCompletionHandler(int trackID,
AVMutableMovie.Block_loadTrackWithTrackIDCompletionHandler completionHandler)
Loads an instance of AVMutableMovieTrack that represents the track of the specified trackID.
trackID - The trackID of the requested AVMutableMovieTrack.completionHandler - A block that is called when the loading is finished, with either the loaded track (which may be nil if no track of the specified trackID is available) or an error.public void loadTracksWithMediaCharacteristicCompletionHandler(java.lang.String mediaCharacteristic,
AVMutableMovie.Block_loadTracksWithMediaCharacteristicCompletionHandler completionHandler)
Loads an array of AVMutableMovieTracks of the asset that present media with the specified characteristic.
mediaCharacteristic - The media characteristic according to which AVAsset filters its AVMutableMovieTracks. (Media characteristics are defined in AVMediaFormat.h.)completionHandler - A block that is called when the loading is finished, with either the loaded tracks (which may be empty if no tracks with the specified characteristic are available) or an error.public void loadTracksWithMediaTypeCompletionHandler(java.lang.String mediaType,
AVMutableMovie.Block_loadTracksWithMediaTypeCompletionHandler completionHandler)
Loads an array of AVMutableMovieTracks of the asset that present media of the specified media type.
mediaType - The media type according to which AVAsset filters its AVMutableMovieTracks. (Media types are defined in AVMediaFormat.h.)completionHandler - A block that is called when the loading is finished, with either the loaded tracks (which may be empty if no tracks of the specified media type are available) or an error.