Package org.robovm.apple.avfoundation
Class AVPlayer
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.avfoundation.AVPlayer
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
AVQueuePlayer
public class AVPlayer extends NSObject
- Since:
- Available in iOS 4.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AVPlayer.AVPlayerPtr
-
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 AVPlayer()
AVPlayer(AVPlayerItem item)
protected
AVPlayer(NSObject.Handle h, long handle)
protected
AVPlayer(NSObject.SkipInit skipInit)
AVPlayer(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
-
AVPlayer
public AVPlayer()
-
AVPlayer
protected AVPlayer(NSObject.Handle h, long handle)
-
AVPlayer
protected AVPlayer(NSObject.SkipInit skipInit)
-
AVPlayer
public AVPlayer(NSURL URL)
-
AVPlayer
public AVPlayer(AVPlayerItem item)
-
-
Method Detail
-
getStatus
public AVPlayerStatus getStatus()
-
getError
public NSError getError()
-
getRate
public float getRate()
-
setRate
public void setRate(float v)
-
getTimeControlStatus
public AVPlayerTimeControlStatus getTimeControlStatus()
- Since:
- Available in iOS 10.0 and later.
-
getReasonForWaitingToPlay
public java.lang.String getReasonForWaitingToPlay()
- Since:
- Available in iOS 10.0 and later.
-
getCurrentItem
public AVPlayerItem getCurrentItem()
-
getActionAtItemEnd
public AVPlayerActionAtItemEnd getActionAtItemEnd()
-
setActionAtItemEnd
public void setActionAtItemEnd(AVPlayerActionAtItemEnd v)
-
automaticallyWaitsToMinimizeStalling
public boolean automaticallyWaitsToMinimizeStalling()
- Since:
- Available in iOS 10.0 and later.
-
setAutomaticallyWaitsToMinimizeStalling
public void setAutomaticallyWaitsToMinimizeStalling(boolean v)
- Since:
- Available in iOS 10.0 and later.
-
getMasterClock
public CMClock getMasterClock()
- Since:
- Available in iOS 6.0 and later.
-
setMasterClock
public void setMasterClock(CMClock v)
- Since:
- Available in iOS 6.0 and later.
-
getVolume
public float getVolume()
- Since:
- Available in iOS 7.0 and later.
-
setVolume
public void setVolume(float v)
- Since:
- Available in iOS 7.0 and later.
-
isMuted
public boolean isMuted()
- Since:
- Available in iOS 7.0 and later.
-
setMuted
public void setMuted(boolean v)
- Since:
- Available in iOS 7.0 and later.
-
appliesMediaSelectionCriteriaAutomatically
public boolean appliesMediaSelectionCriteriaAutomatically()
- Since:
- Available in iOS 7.0 and later.
-
setAppliesMediaSelectionCriteriaAutomatically
public void setAppliesMediaSelectionCriteriaAutomatically(boolean v)
- Since:
- Available in iOS 7.0 and later.
-
allowsExternalPlayback
public boolean allowsExternalPlayback()
- Since:
- Available in iOS 6.0 and later.
-
setAllowsExternalPlayback
public void setAllowsExternalPlayback(boolean v)
- Since:
- Available in iOS 6.0 and later.
-
isExternalPlaybackActive
public boolean isExternalPlaybackActive()
- Since:
- Available in iOS 6.0 and later.
-
usesExternalPlaybackWhileExternalScreenIsActive
public boolean usesExternalPlaybackWhileExternalScreenIsActive()
- Since:
- Available in iOS 6.0 and later.
-
setUsesExternalPlaybackWhileExternalScreenIsActive
public void setUsesExternalPlaybackWhileExternalScreenIsActive(boolean v)
- Since:
- Available in iOS 6.0 and later.
-
getExternalPlaybackVideoGravity
public java.lang.String getExternalPlaybackVideoGravity()
- Since:
- Available in iOS 6.0 and later.
-
setExternalPlaybackVideoGravity
public void setExternalPlaybackVideoGravity(java.lang.String v)
- Since:
- Available in iOS 6.0 and later.
-
outputObscuredDueToInsufficientExternalProtection
public boolean outputObscuredDueToInsufficientExternalProtection()
- Since:
- Available in iOS 6.0 and later.
-
getAvailableHDRModes
public static AVPlayerHDRMode getAvailableHDRModes()
- Since:
- Available in iOS 11.2 and later.
-
isPreventsDisplaySleepDuringVideoPlayback
public boolean isPreventsDisplaySleepDuringVideoPlayback()
- Since:
- Available in iOS 12.0 and later.
-
setPreventsDisplaySleepDuringVideoPlayback
public void setPreventsDisplaySleepDuringVideoPlayback(boolean v)
- Since:
- Available in iOS 12.0 and later.
-
isClosedCaptionDisplayEnabled
@Deprecated public boolean isClosedCaptionDisplayEnabled()
Deprecated.Deprecated in iOS 11.0. Allow AVPlayer to enable closed captions automatically according to user preferences by ensuring that the value of appliesMediaSelectionCriteriaAutomatically is YES.- Since:
- Available in iOS 4.0 and later.
-
setClosedCaptionDisplayEnabled
@Deprecated public void setClosedCaptionDisplayEnabled(boolean v)
Deprecated.Deprecated in iOS 11.0. Allow AVPlayer to enable closed captions automatically according to user preferences by ensuring that the value of appliesMediaSelectionCriteriaAutomatically is YES.- Since:
- Available in iOS 4.0 and later.
-
WaitingToMinimizeStallsReason
public static NSString WaitingToMinimizeStallsReason()
- Since:
- Available in iOS 10.0 and later.
-
WaitingWhileEvaluatingBufferingRateReason
public static NSString WaitingWhileEvaluatingBufferingRateReason()
- Since:
- Available in iOS 10.0 and later.
-
WaitingWithNoItemToPlayReason
public static NSString WaitingWithNoItemToPlayReason()
- Since:
- Available in iOS 10.0 and later.
-
AvailableHDRModesDidChangeNotification
public static java.lang.String AvailableHDRModesDidChangeNotification()
- Since:
- Available in iOS 11.2 and later.
-
init
protected long init(NSURL URL)
-
init
protected long init(AVPlayerItem item)
-
play
public void play()
-
pause
public void pause()
-
playImmediatelyAtRate
public void playImmediatelyAtRate(float rate)
- Since:
- Available in iOS 10.0 and later.
-
replaceCurrentItem
public void replaceCurrentItem(AVPlayerItem item)
-
getCurrentTime
public CMTime getCurrentTime()
-
seekToDate
public void seekToDate(NSDate date)
-
seekToDate
public void seekToDate(NSDate date, org.robovm.objc.block.VoidBooleanBlock completionHandler)
- Since:
- Available in iOS 5.0 and later.
-
seekToTime
public void seekToTime(CMTime time)
-
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.
-
setRate
public void setRate(float rate, CMTime itemTime, CMTime hostClockTime)
- Since:
- Available in iOS 6.0 and later.
-
prerollAtRate
public void prerollAtRate(float rate, org.robovm.objc.block.VoidBooleanBlock completionHandler)
- Since:
- Available in iOS 6.0 and later.
-
cancelPendingPrerolls
public void cancelPendingPrerolls()
- Since:
- Available in iOS 6.0 and later.
-
addPeriodicTimeObserver
public NSObject addPeriodicTimeObserver(CMTime interval, DispatchQueue queue, org.robovm.objc.block.VoidBlock1<CMTime> block)
-
addBoundaryTimeObserver
public NSObject addBoundaryTimeObserver(java.util.List<CMTime> times, DispatchQueue queue, java.lang.Runnable block)
-
removeTimeObserver
public void removeTimeObserver(NSObject observer)
-
setMediaSelectionCriteria
public void setMediaSelectionCriteria(AVPlayerMediaSelectionCriteria criteria, java.lang.String mediaCharacteristic)
- Since:
- Available in iOS 7.0 and later.
-
getMediaSelectionCriteria
public AVPlayerMediaSelectionCriteria getMediaSelectionCriteria(java.lang.String mediaCharacteristic)
- Since:
- Available in iOS 7.0 and later.
-
-