Package org.robovm.apple.avfoundation
Class AVAsset
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.avfoundation.AVAsset
-
- All Implemented Interfaces:
AVAsynchronousKeyValueLoading
,NSObjectProtocol
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
AVComposition
,AVURLAsset
public class AVAsset extends NSObject implements AVAsynchronousKeyValueLoading
- Since:
- Available in iOS 4.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AVAsset.AVAssetPtr
static class
AVAsset.Notifications
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description AVAsset()
protected
AVAsset(long handle)
Deprecated.protected
AVAsset(NSObject.Handle h, long handle)
protected
AVAsset(NSObject.SkipInit skipInit)
AVAsset(NSURL URL)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
AVAsset
public AVAsset()
-
AVAsset
@Deprecated protected AVAsset(long handle)
Deprecated.
-
AVAsset
protected AVAsset(NSObject.Handle h, long handle)
-
AVAsset
protected AVAsset(NSObject.SkipInit skipInit)
-
AVAsset
public AVAsset(NSURL URL)
-
-
Method Detail
-
getDuration
public CMTime getDuration()
-
getPreferredRate
public float getPreferredRate()
-
getPreferredVolume
public float getPreferredVolume()
-
getPreferredTransform
public CGAffineTransform getPreferredTransform()
-
providesPreciseDurationAndTiming
public boolean providesPreciseDurationAndTiming()
-
getReferenceRestrictions
public AVAssetReferenceRestrictions getReferenceRestrictions()
- Since:
- Available in iOS 5.0 and later.
-
getTracks
public NSArray<? extends AVAssetTrack> getTracks()
-
getTrackGroups
public NSArray<AVAssetTrackGroup> getTrackGroups()
- Since:
- Available in iOS 7.0 and later.
-
getCreationDate
public AVMetadataItem getCreationDate()
- Since:
- Available in iOS 5.0 and later.
-
getLyrics
public java.lang.String getLyrics()
-
getCommonMetadata
public NSArray<AVMetadataItem> getCommonMetadata()
-
getMetadata
public NSArray<AVMetadataItem> getMetadata()
- Since:
- Available in iOS 8.0 and later.
-
getAvailableMetadataFormats
public java.util.List<AVMetadataFormat> getAvailableMetadataFormats()
-
getAvailableChapterLocales
public NSArray<NSLocale> getAvailableChapterLocales()
- Since:
- Available in iOS 4.3 and later.
-
getAvailableMediaCharacteristicsWithMediaSelectionOptions
public java.util.List<AVMediaCharacteristic> getAvailableMediaCharacteristicsWithMediaSelectionOptions()
- Since:
- Available in iOS 5.0 and later.
-
getPreferredMediaSelection
public AVMediaSelection getPreferredMediaSelection()
- Since:
- Available in iOS 9.0 and later.
-
getAllMediaSelections
public NSArray<AVMediaSelection> getAllMediaSelections()
- Since:
- Available in iOS 11.0 and later.
-
hasProtectedContent
public boolean hasProtectedContent()
- Since:
- Available in iOS 4.2 and later.
-
canContainFragments
public boolean canContainFragments()
- Since:
- Available in iOS 9.0 and later.
-
containsFragments
public boolean containsFragments()
- Since:
- Available in iOS 9.0 and later.
-
getOverallDurationHint
public CMTime getOverallDurationHint()
- Since:
- Available in iOS 10.2 and later.
-
isPlayable
public boolean isPlayable()
- Since:
- Available in iOS 4.3 and later.
-
isExportable
public boolean isExportable()
- Since:
- Available in iOS 4.3 and later.
-
isReadable
public boolean isReadable()
- Since:
- Available in iOS 4.3 and later.
-
isComposable
public boolean isComposable()
- Since:
- Available in iOS 4.3 and later.
-
isCompatibleWithSavedPhotosAlbum
public boolean isCompatibleWithSavedPhotosAlbum()
- Since:
- Available in iOS 5.0 and later.
-
isCompatibleWithAirPlayVideo
public boolean isCompatibleWithAirPlayVideo()
- Since:
- Available in iOS 9.0 and later.
-
getStatusOfValue
public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorException
- Parameters:
key
-- Returns:
- Throws:
NSErrorException
-
DurationDidChangeNotification
public static NSString DurationDidChangeNotification()
- Since:
- Available in iOS 9.0 and later.
-
ContainsFragmentsDidChangeNotification
public static NSString ContainsFragmentsDidChangeNotification()
- Since:
- Available in iOS 12.0 and later.
-
WasDefragmentedNotification
public static NSString WasDefragmentedNotification()
- Since:
- Available in iOS 12.0 and later.
-
ChapterMetadataGroupsDidChangeNotification
public static NSString ChapterMetadataGroupsDidChangeNotification()
- Since:
- Available in iOS 9.0 and later.
-
MediaSelectionGroupsDidChangeNotification
public static NSString MediaSelectionGroupsDidChangeNotification()
- Since:
- Available in iOS 9.0 and later.
-
create
protected static long create(NSURL URL)
-
cancelLoading
public void cancelLoading()
-
getTrack
public AVAssetTrack getTrack(int trackID)
-
getTracksWithType
public NSArray<AVAssetTrack> getTracksWithType(AVMediaType mediaType)
-
getTracksWithCharacteristic
public NSArray<AVAssetTrack> getTracksWithCharacteristic(AVMediaCharacteristic mediaCharacteristic)
-
getMetadata
public NSArray<AVMetadataItem> getMetadata(AVMetadataFormat format)
-
getChapterMetadataGroupsContainingItemsWithCommonKeys
public NSArray<AVTimedMetadataGroup> getChapterMetadataGroupsContainingItemsWithCommonKeys(NSLocale locale, java.util.List<AVMetadataKey> commonKeys)
- Since:
- Available in iOS 4.3 and later.
-
getChapterMetadataGroupsBestMatchingPreferredLanguages
public NSArray<AVTimedMetadataGroup> getChapterMetadataGroupsBestMatchingPreferredLanguages(java.util.List<java.lang.String> preferredLanguages)
- Since:
- Available in iOS 6.0 and later.
-
getMediaSelectionGroup
public AVMediaSelectionGroup getMediaSelectionGroup(AVMediaCharacteristic mediaCharacteristic)
- Since:
- Available in iOS 5.0 and later.
-
getUnusedTrackID
public int getUnusedTrackID()
-
getStatusOfValue
public AVKeyValueStatus getStatusOfValue(AVMetadataKey key, NSError.NSErrorPtr outError)
- Specified by:
getStatusOfValue
in interfaceAVAsynchronousKeyValueLoading
-
loadValuesAsynchronously
public void loadValuesAsynchronously(java.util.List<AVMetadataKey> keys, java.lang.Runnable handler)
- Specified by:
loadValuesAsynchronously
in interfaceAVAsynchronousKeyValueLoading
-
-