Package org.robovm.apple.avfoundation
Class AVPlayerItem
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.avfoundation.AVPlayerItem
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class AVPlayerItem extends NSObject
- Since:
- Available in iOS 4.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AVPlayerItem.AVPlayerItemPtr
static class
AVPlayerItem.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 protected
AVPlayerItem()
AVPlayerItem(AVAsset asset)
AVPlayerItem(AVAsset asset, java.util.List<java.lang.String> automaticallyLoadedAssetKeys)
protected
AVPlayerItem(NSObject.Handle h, long handle)
protected
AVPlayerItem(NSObject.SkipInit skipInit)
AVPlayerItem(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
-
AVPlayerItem
protected AVPlayerItem()
-
AVPlayerItem
protected AVPlayerItem(NSObject.Handle h, long handle)
-
AVPlayerItem
protected AVPlayerItem(NSObject.SkipInit skipInit)
-
AVPlayerItem
public AVPlayerItem(NSURL URL)
-
AVPlayerItem
public AVPlayerItem(AVAsset asset)
-
AVPlayerItem
public AVPlayerItem(AVAsset asset, java.util.List<java.lang.String> automaticallyLoadedAssetKeys)
- Since:
- Available in iOS 7.0 and later.
-
-
Method Detail
-
getStatus
public AVPlayerItemStatus getStatus()
-
getError
public NSError getError()
-
getAsset
public AVAsset getAsset()
-
getTracks
public NSArray<AVPlayerItemTrack> getTracks()
-
getDuration
public CMTime getDuration()
- Since:
- Available in iOS 4.3 and later.
-
getPresentationSize
public CGSize getPresentationSize()
-
getTimedMetadata
public NSArray<AVMetadataItem> getTimedMetadata()
-
getAutomaticallyLoadedAssetKeys
public java.util.List<java.lang.String> getAutomaticallyLoadedAssetKeys()
- Since:
- Available in iOS 7.0 and later.
-
canPlayFastForward
public boolean canPlayFastForward()
- Since:
- Available in iOS 5.0 and later.
-
canPlaySlowForward
public boolean canPlaySlowForward()
- Since:
- Available in iOS 6.0 and later.
-
canPlayReverse
public boolean canPlayReverse()
- Since:
- Available in iOS 6.0 and later.
-
canPlaySlowReverse
public boolean canPlaySlowReverse()
- Since:
- Available in iOS 6.0 and later.
-
canPlayFastReverse
public boolean canPlayFastReverse()
- Since:
- Available in iOS 5.0 and later.
-
canStepForward
public boolean canStepForward()
- Since:
- Available in iOS 6.0 and later.
-
canStepBackward
public boolean canStepBackward()
- Since:
- Available in iOS 6.0 and later.
-
getForwardPlaybackEndTime
public CMTime getForwardPlaybackEndTime()
-
setForwardPlaybackEndTime
public void setForwardPlaybackEndTime(CMTime v)
-
getReversePlaybackEndTime
public CMTime getReversePlaybackEndTime()
-
setReversePlaybackEndTime
public void setReversePlaybackEndTime(CMTime v)
-
getSeekableTimeRanges
public java.util.List<CMTimeRange> getSeekableTimeRanges()
-
getTimebase
public CMTimebase getTimebase()
- Since:
- Available in iOS 6.0 and later.
-
getVideoComposition
public AVVideoComposition getVideoComposition()
-
setVideoComposition
public void setVideoComposition(AVVideoComposition v)
-
getCustomVideoCompositor
public AVVideoCompositing getCustomVideoCompositor()
- Since:
- Available in iOS 7.0 and later.
-
seekingWaitsForVideoCompositionRendering
public boolean seekingWaitsForVideoCompositionRendering()
- Since:
- Available in iOS 6.0 and later.
-
seekingWaitsForVideoCompositionRendering
public void seekingWaitsForVideoCompositionRendering(boolean v)
- Since:
- Available in iOS 6.0 and later.
-
getTextStyleRules
public NSArray<AVTextStyleRule> getTextStyleRules()
- Since:
- Available in iOS 6.0 and later.
-
setTextStyleRules
public void setTextStyleRules(NSArray<AVTextStyleRule> v)
- Since:
- Available in iOS 6.0 and later.
-
getVideoApertureMode
public AVVideoApertureMode getVideoApertureMode()
- Since:
- Available in iOS 11.0 and later.
-
setVideoApertureMode
public void setVideoApertureMode(AVVideoApertureMode v)
- Since:
- Available in iOS 11.0 and later.
-
getAudioTimePitchAlgorithm
public java.lang.String getAudioTimePitchAlgorithm()
- Since:
- Available in iOS 7.0 and later.
-
setAudioTimePitchAlgorithm
public void setAudioTimePitchAlgorithm(java.lang.String v)
- Since:
- Available in iOS 7.0 and later.
-
getAudioMix
public AVAudioMix getAudioMix()
-
setAudioMix
public void setAudioMix(AVAudioMix v)
-
getLoadedTimeRanges
public java.util.List<CMTimeRange> getLoadedTimeRanges()
-
isPlaybackLikelyToKeepUp
public boolean isPlaybackLikelyToKeepUp()
-
isPlaybackBufferFull
public boolean isPlaybackBufferFull()
-
isPlaybackBufferEmpty
public boolean isPlaybackBufferEmpty()
-
canUseNetworkResourcesForLiveStreamingWhilePaused
public boolean canUseNetworkResourcesForLiveStreamingWhilePaused()
- Since:
- Available in iOS 9.0 and later.
-
setCanUseNetworkResourcesForLiveStreamingWhilePaused
public void setCanUseNetworkResourcesForLiveStreamingWhilePaused(boolean v)
- Since:
- Available in iOS 9.0 and later.
-
getPreferredForwardBufferDuration
public double getPreferredForwardBufferDuration()
- Since:
- Available in iOS 10.0 and later.
-
setPreferredForwardBufferDuration
public void setPreferredForwardBufferDuration(double v)
- Since:
- Available in iOS 10.0 and later.
-
getPreferredPeakBitRate
public double getPreferredPeakBitRate()
- Since:
- Available in iOS 8.0 and later.
-
setPreferredPeakBitRate
public void setPreferredPeakBitRate(double v)
- Since:
- Available in iOS 8.0 and later.
-
getPreferredMaximumResolution
public CGSize getPreferredMaximumResolution()
- Since:
- Available in iOS 11.0 and later.
-
setPreferredMaximumResolution
public void setPreferredMaximumResolution(CGSize v)
- Since:
- Available in iOS 11.0 and later.
-
getCurrentMediaSelection
public AVMediaSelection getCurrentMediaSelection()
- Since:
- Available in iOS 9.0 and later.
-
getOutputs
public NSArray<AVPlayerItemOutput> getOutputs()
- Since:
- Available in iOS 6.0 and later.
-
getMediaDataCollectors
public NSArray<AVPlayerItemMediaDataCollector> getMediaDataCollectors()
- Since:
- Available in iOS 9.3 and later.
-
TimeJumpedNotification
public static NSString TimeJumpedNotification()
- Since:
- Available in iOS 5.0 and later.
-
DidPlayToEndTimeNotification
public static NSString DidPlayToEndTimeNotification()
- Since:
- Available in iOS 4.0 and later.
-
FailedToPlayToEndTimeNotification
public static NSString FailedToPlayToEndTimeNotification()
- Since:
- Available in iOS 4.3 and later.
-
PlaybackStalledNotification
public static NSString PlaybackStalledNotification()
- Since:
- Available in iOS 6.0 and later.
-
NewAccessLogEntryNotification
public static NSString NewAccessLogEntryNotification()
- Since:
- Available in iOS 6.0 and later.
-
NewErrorLogEntryNotification
public static NSString NewErrorLogEntryNotification()
- Since:
- Available in iOS 6.0 and later.
-
FailedToPlayToEndTimeErrorKey
protected static NSString FailedToPlayToEndTimeErrorKey()
- Since:
- Available in iOS 4.3 and later.
-
init
protected long init(NSURL URL)
-
init
protected long init(AVAsset asset)
-
init
protected long init(AVAsset asset, java.util.List<java.lang.String> automaticallyLoadedAssetKeys)
- Since:
- Available in iOS 7.0 and later.
-
getCurrentTime
public CMTime getCurrentTime()
-
seekToTime
public void seekToTime(CMTime time, org.robovm.objc.block.VoidBooleanBlock completionHandler)
- Since:
- Available in iOS 5.0 and later.
-
seekToTime
public void seekToTime(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter, org.robovm.objc.block.VoidBooleanBlock completionHandler)
- Since:
- Available in iOS 5.0 and later.
-
cancelPendingSeeks
public void cancelPendingSeeks()
- Since:
- Available in iOS 5.0 and later.
-
getCurrentDate
public NSDate getCurrentDate()
-
seekToDate
public boolean seekToDate(NSDate date, org.robovm.objc.block.VoidBooleanBlock completionHandler)
- Since:
- Available in iOS 6.0 and later.
-
stepByCount
public void stepByCount(long stepCount)
-
selectMediaOption
public void selectMediaOption(AVMediaSelectionOption mediaSelectionOption, AVMediaSelectionGroup mediaSelectionGroup)
- Since:
- Available in iOS 5.0 and later.
-
selectMediaOptionAutomatically
public void selectMediaOptionAutomatically(AVMediaSelectionGroup mediaSelectionGroup)
- Since:
- Available in iOS 7.0 and later.
-
getAccessLog
public AVPlayerItemAccessLog getAccessLog()
- Since:
- Available in iOS 4.3 and later.
-
getErrorLog
public AVPlayerItemErrorLog getErrorLog()
- Since:
- Available in iOS 4.3 and later.
-
addOutput
public void addOutput(AVPlayerItemOutput output)
- Since:
- Available in iOS 6.0 and later.
-
removeOutput
public void removeOutput(AVPlayerItemOutput output)
- Since:
- Available in iOS 6.0 and later.
-
addMediaDataCollector
public void addMediaDataCollector(AVPlayerItemMediaDataCollector collector)
- Since:
- Available in iOS 9.3 and later.
-
removeMediaDataCollector
public void removeMediaDataCollector(AVPlayerItemMediaDataCollector collector)
- Since:
- Available in iOS 9.3 and later.
-
seekToTime
@Deprecated public void seekToTime(CMTime time)
Deprecated.Deprecated in iOS 11.0.- Since:
- Available in iOS 4.0 and later.
-
seekToTime
@Deprecated public void seekToTime(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter)
Deprecated.Deprecated in iOS 11.0.- Since:
- Available in iOS 4.0 and later.
-
seekToDate
@Deprecated public boolean seekToDate(NSDate date)
Deprecated.Deprecated in iOS 11.0.- Since:
- Available in iOS 4.0 and later.
-
getSelectedMediaOption
@Deprecated public AVMediaSelectionOption getSelectedMediaOption(AVMediaSelectionGroup mediaSelectionGroup)
Deprecated.Deprecated in iOS 11.0.- Since:
- Available in iOS 5.0 and later.
-
-