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,ObjCProtocol
- Direct Known Subclasses:
AVQueuePlayer
public class AVPlayer extends NSObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAVPlayer.AVPlayerPtrstatic classAVPlayer.NotificationsNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description AVPlayer()AVPlayer(AVPlayerItem item)protectedAVPlayer(NSObject.Handle h, long handle)protectedAVPlayer(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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
AVPlayer
public AVPlayer() -
AVPlayer
-
AVPlayer
-
AVPlayer
-
AVPlayer
-
-
Method Details
-
getStatus
-
getError
-
getRate
public float getRate() -
setRate
public void setRate(float v) -
getTimeControlStatus
- Since:
- Available in iOS 10.0 and later.
-
getReasonForWaitingToPlay
- Since:
- Available in iOS 10.0 and later.
-
getCurrentItem
-
getActionAtItemEnd
-
setActionAtItemEnd
-
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.
-
getSourceClock
- Since:
- Available in iOS 15.0 and later.
-
setSourceClock
- Since:
- Available in iOS 15.0 and later.
-
getVolume
public float getVolume() -
setVolume
public void setVolume(float v) -
isMuted
public boolean isMuted() -
setMuted
public void setMuted(boolean v) -
appliesMediaSelectionCriteriaAutomatically
public boolean appliesMediaSelectionCriteriaAutomatically() -
setAppliesMediaSelectionCriteriaAutomatically
public void setAppliesMediaSelectionCriteriaAutomatically(boolean v) -
allowsExternalPlayback
public boolean allowsExternalPlayback() -
setAllowsExternalPlayback
public void setAllowsExternalPlayback(boolean v) -
isExternalPlaybackActive
public boolean isExternalPlaybackActive() -
usesExternalPlaybackWhileExternalScreenIsActive
public boolean usesExternalPlaybackWhileExternalScreenIsActive() -
setUsesExternalPlaybackWhileExternalScreenIsActive
public void setUsesExternalPlaybackWhileExternalScreenIsActive(boolean v) -
getExternalPlaybackVideoGravity
-
setExternalPlaybackVideoGravity
-
outputObscuredDueToInsufficientExternalProtection
public boolean outputObscuredDueToInsufficientExternalProtection() -
getAvailableHDRModes
- Since:
- Available in iOS 11.2 and later.
-
isEligibleForHDRPlayback
public static boolean isEligibleForHDRPlayback()- Since:
- Available in iOS 13.4 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.
-
getAudiovisualBackgroundPlaybackPolicy
- Since:
- Available in iOS 15.0 and later.
-
setAudiovisualBackgroundPlaybackPolicy
- Since:
- Available in iOS 15.0 and later.
-
getPlaybackCoordinator
- Since:
- Available in iOS 15.0 and later.
-
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. -
setClosedCaptionDisplayEnabled
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. -
getMasterClock
Deprecated.Use sourceClock -
setMasterClock
Deprecated.Use sourceClock -
WaitingToMinimizeStallsReason
- Since:
- Available in iOS 10.0 and later.
-
WaitingWhileEvaluatingBufferingRateReason
- Since:
- Available in iOS 10.0 and later.
-
WaitingWithNoItemToPlayReason
- Since:
- Available in iOS 10.0 and later.
-
WaitingForCoordinatedPlaybackReason
- Since:
- Available in iOS 15.0 and later.
-
AvailableHDRModesDidChangeNotification
- Since:
- Available in iOS 11.2 and later.
-
WaitingDuringInterstitialEventReason
- Since:
- Available in iOS 15.0 and later.
-
init
-
init
-
play
public void play() -
pause
public void pause() -
playImmediatelyAtRate
public void playImmediatelyAtRate(float rate)- Since:
- Available in iOS 10.0 and later.
-
replaceCurrentItem
-
getCurrentTime
-
seekToDate
-
seekToDate
-
seekToTime
-
seekToTime
-
seekToTime
-
seekToTime
public void seekToTime(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter, VoidBooleanBlock completionHandler) -
setRate
-
prerollAtRate
-
cancelPendingPrerolls
public void cancelPendingPrerolls() -
addPeriodicTimeObserver
public NSObject addPeriodicTimeObserver(CMTime interval, DispatchQueue queue, VoidBlock1<CMTime> block) -
addBoundaryTimeObserver
-
removeTimeObserver
-
setMediaSelectionCriteria
public void setMediaSelectionCriteria(AVPlayerMediaSelectionCriteria criteria, String mediaCharacteristic) -
getMediaSelectionCriteria
-