Package apple.avfoundation
Class AVPlayerItem
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVPlayerItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAVPlayerItem.Block_seekToDateCompletionHandlerstatic interfaceAVPlayerItem.Block_seekToTimeCompletionHandlerstatic interfaceAVPlayerItem.Block_seekToTimeToleranceBeforeToleranceAfterCompletionHandler-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVPlayerItem(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()@Nullable AVPlayerItemAccessLogaccessLog()accessLog Returns an object that represents a snapshot of the network access log.voidaddMediaDataCollector(@NotNull AVPlayerItemMediaDataCollector collector)addMediaDataCollector: Adds the specified instance of AVPlayerItemMediaDataCollector to the receiver's collection of mediaDataCollectors.voidaddOutput(@NotNull AVPlayerItemOutput output)addOutput: Adds the specified instance of AVPlayerItemOutput to the receiver's collection of outputs.static AVPlayerItemalloc()static AVPlayerItemallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)longallowedAudioSpatializationFormats()[@property] allowedAudioSpatializationFormats Indicates the source audio channel layouts allowed by the receiver for spatialization.booleanappliesPerFrameHDRDisplayMetadata()default is YES API-Since: 14.0@NotNull AVAssetasset()[@property] asset Accessor for underlying AVAsset.@Nullable AVAudioMixaudioMix()[@property] audioMix Indicates the audio mix parameters to be applied during playback The inputParameters of the AVAudioMix must have trackIDs that correspond to a track of the receiver's asset.@NotNull java.lang.StringaudioTimePitchAlgorithm()[@property] audioTimePitchAlgorithm Indicates the processing algorithm used to manage audio pitch at varying rates and for scaled audio edits.booleanautomaticallyHandlesInterstitialEvents()[@property] automaticallyHandlesInterstitialEvents Allows interstitials to be played according to a schedule that's specified by server-side directives.@NotNull NSArray<java.lang.String>automaticallyLoadedAssetKeys()[@property] automaticallyLoadedAssetKeys An array of property keys defined on AVAsset.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)booleanautomaticallyPreservesTimeOffsetFromLive()[@property] automaticallyPreservesTimeOffsetFromLive Indicates that after the player spends a period of time buffering media, it will skip forward if necessary to restore the playhead's distance from the live edge of the presentation to what it was when buffering began.voidcancelPendingSeeks()cancelPendingSeeks Cancel any pending seek requests and invoke the corresponding completion handlers if present.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)booleancanPlayFastForward()For releases of macOS prior to 10.9 and releases of iOS prior to 7.0, indicates whether the item can be played at rates greater than 1.0.booleancanPlayFastReverse()indicates whether the item can be played at rates less than -1.0 API-Since: 5.0booleancanPlayReverse()indicates whether the item can be played at rate -1.0 API-Since: 6.0booleancanPlaySlowForward()indicates whether the item can be played at rates between 0.0 and 1.0 API-Since: 6.0booleancanPlaySlowReverse()indicates whether the item can be played at rates less between 0.0 and -1.0 API-Since: 6.0booleancanStepBackward()indicates whether the item supports stepping backward; see -stepByCount:.booleancanStepForward()Indicates whether the item supports stepping forward; see -stepByCount:.booleancanUseNetworkResourcesForLiveStreamingWhilePaused()[@property] canUseNetworkResourcesForLiveStreamingWhilePaused Indicates whether the player item can use network resources to keep playback state up to date while paused For live streaming content, the player item may need to use extra networking and power resources to keep playback state up to date when paused.static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()CMTimeconfiguredTimeOffsetFromLive()[@property] configuredTimeOffsetFromLive Indicates how close to the latest content in a live stream playback will begin after a live start or a seek to kCMTimePositiveInfinity.@NotNull java.lang.Objectcopy()@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)@Nullable NSDatecurrentDate()currentDate If currentTime is mapped to a particular (real-time) date, return that date.@NotNull AVMediaSelectioncurrentMediaSelection()[@property] currentMediaSelection Provides an instance of AVMediaSelection carrying current selections for each of the receiver's media selection groups.CMTimecurrentTime()currentTime Returns the current time of the item.@Nullable AVVideoCompositingcustomVideoCompositor()[@property] customVideoCompositor Indicates the custom video compositor instance.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()CMTimeduration()[@property] duration Indicates the duration of the item, not considering either its forwardPlaybackEndTime or reversePlaybackEndTime.@Nullable NSErrorerror()[@property] error If the receiver's status is AVPlayerItemStatusFailed, this describes the error that caused the failure.@Nullable AVPlayerItemErrorLogerrorLog()errorLog Returns an object that represents a snapshot of the error log.@NotNull NSArray<? extends AVMetadataItem>externalMetadata()[@property] externalMetadata Supplements metadata contained in the asset.CMTimeforwardPlaybackEndTime()[@property] forwardPlaybackEndTime The end time for forward playback.static longhash_static()AVPlayerIteminit()AVPlayerIteminitWithAsset(@NotNull AVAsset asset)initWithAsset: Initializes an AVPlayerItem with an AVAsset.AVPlayerIteminitWithAssetAutomaticallyLoadedAssetKeys(@NotNull AVAsset asset, @Nullable NSArray<java.lang.String> automaticallyLoadedAssetKeys)initWithAsset:automaticallyLoadedAssetKeys: Initializes an AVPlayerItem with an AVAsset.AVPlayerIteminitWithURL(@NotNull NSURL URL)initWithURL: Initializes an AVPlayerItem with an NSURL.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)@NotNull NSArray<? extends AVInterstitialTimeRange>interstitialTimeRanges()[@property] interstitialTimeRanges An array of time ranges that identifies interstitial content.booleanisAudioSpatializationAllowed()Deprecated.booleanisPlaybackBufferEmpty()indicates that playback has consumed all buffered media and that playback will stall or endbooleanisPlaybackBufferFull()[@property] playbackBufferFull Indicates that the internal media buffer is full and that further I/O is suspended.booleanisPlaybackLikelyToKeepUp()[@property] playbackLikelyToKeepUp Indicates whether the item will likely play through without stalling.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@NotNull NSArray<? extends NSValue>loadedTimeRanges()[@property] loadedTimeRanges This property provides a collection of time ranges for which the player has the media data readily available.@NotNull NSArray<? extends AVPlayerItemMediaDataCollector>mediaDataCollectors()[@property] mediaDataCollectors The collection of associated mediaDataCollectors.static AVPlayerItemnew_objc()@Nullable NSDictionary<java.lang.String,?>nowPlayingInfo()The current now playing info for the player item.@NotNull NSArray<? extends AVPlayerItemOutput>outputs()[@property] outputs The collection of associated outputs.static AVPlayerItemplayerItemWithAsset(@NotNull AVAsset asset)playerItemWithAsset: Returns an instance of AVPlayerItem for playing an AVAsset.static AVPlayerItemplayerItemWithAssetAutomaticallyLoadedAssetKeys(@NotNull AVAsset asset, @Nullable NSArray<java.lang.String> automaticallyLoadedAssetKeys)playerItemWithAsset:automaticallyLoadedAssetKeys: Returns an instance of AVPlayerItem for playing an AVAsset.static AVPlayerItemplayerItemWithURL(@NotNull NSURL URL)playerItemWithURL: Returns an instance of AVPlayerItem for playing a resource at the specified location.doublepreferredForwardBufferDuration()[@property] preferredForwardBufferDuration Indicates the media duration the caller prefers the player to buffer from the network ahead of the playhead to guard against playback disruption.CGSizepreferredMaximumResolution()[@property] preferredMaximumResolution Indicates a preferred upper limit on the resolution of the video to be downloaded (or otherwise transferred) and rendered by the player.CGSizepreferredMaximumResolutionForExpensiveNetworks()[@property] preferredMaximumResolutionForExpensiveNetworks Indicates a preferred upper limit on the resolution of the video to be downloaded that applies only when the download occurs over expensive networks.doublepreferredPeakBitRate()[@property] preferredPeakBitRate Indicates the desired limit of network bandwidth consumption for this item.doublepreferredPeakBitRateForExpensiveNetworks()[@property] preferredPeakBitRateForExpensiveNetworks Indicates the desired limit of network bandwidth consumption for this item over expensive networks.CGSizepresentationSize()[@property] presentationSize The size of the receiver as presented by the player.CMTimerecommendedTimeOffsetFromLive()[@property] recommendedTimeOffsetFromLive A recommended value for configuredTimeOffsetFromLive, based on observed network conditions.voidremoveMediaDataCollector(@NotNull AVPlayerItemMediaDataCollector collector)removeMediaDataCollector: Removes the specified instance of AVPlayerItemMediaDataCollector from the receiver's collection of mediaDataCollectors.voidremoveOutput(@NotNull AVPlayerItemOutput output)removeOutput: Removes the specified instance of AVPlayerItemOutput from the receiver's collection of outputs.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)CMTimereversePlaybackEndTime()[@property] reversePlaybackEndTime The end time for reverse playback.@NotNull NSArray<? extends NSValue>seekableTimeRanges()[@property] seekableTimeRanges This property provides a collection of time ranges that the player item can seek to.booleanseekingWaitsForVideoCompositionRendering()[@property] seekingWaitsForVideoCompositionRendering Indicates whether the item's timing follows the displayed video frame when seeking with a video composition By default, item timing is updated as quickly as possible, not waiting for media at new times to be rendered when seeking or during normal playback.booleanseekToDate(@NotNull NSDate date)Deprecated.booleanseekToDateCompletionHandler(@NotNull NSDate date, @Nullable AVPlayerItem.Block_seekToDateCompletionHandler completionHandler)seekToDate:completionHandler: move playhead to a point corresponding to a particular date, and invokes the specified block when the seek operation has either been completed or been interrupted.voidseekToTime(CMTime time)Deprecated.voidseekToTimeCompletionHandler(CMTime time, @Nullable AVPlayerItem.Block_seekToTimeCompletionHandler completionHandler)seekToTime:completionHandler: Moves the playback cursor and invokes the specified block when the seek operation has either been completed or been interrupted.voidseekToTimeToleranceBeforeToleranceAfter(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter)Deprecated.voidseekToTimeToleranceBeforeToleranceAfterCompletionHandler(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter, @Nullable AVPlayerItem.Block_seekToTimeToleranceBeforeToleranceAfterCompletionHandler completionHandler)seekToTime:toleranceBefore:toleranceAfter:completionHandler: Moves the playback cursor within a specified time bound and invokes the specified block when the seek operation has either been completed or been interrupted.@Nullable AVMediaSelectionOptionselectedMediaOptionInMediaSelectionGroup(@NotNull AVMediaSelectionGroup mediaSelectionGroup)Deprecated.voidselectMediaOptionAutomaticallyInMediaSelectionGroup(@NotNull AVMediaSelectionGroup mediaSelectionGroup)selectMediaOptionAutomaticallyInMediaSelectionGroup: Selects the media option in the specified media selection group that best matches the AVPlayer's current automatic selection criteria.voidselectMediaOptionInMediaSelectionGroup(@Nullable AVMediaSelectionOption mediaSelectionOption, @NotNull AVMediaSelectionGroup mediaSelectionGroup)selectMediaOption:inMediaSelectionGroup: Selects the media option described by the specified instance of AVMediaSelectionOption in the specified AVMediaSelectionGroup and deselects all other options in that group.voidsetAllowedAudioSpatializationFormats(long value)[@property] allowedAudioSpatializationFormats Indicates the source audio channel layouts allowed by the receiver for spatialization.voidsetAppliesPerFrameHDRDisplayMetadata(boolean value)default is YES API-Since: 14.0voidsetAudioMix(@Nullable AVAudioMix value)[@property] audioMix Indicates the audio mix parameters to be applied during playback The inputParameters of the AVAudioMix must have trackIDs that correspond to a track of the receiver's asset.voidsetAudioSpatializationAllowed(boolean value)Deprecated.voidsetAudioTimePitchAlgorithm(@NotNull java.lang.String value)[@property] audioTimePitchAlgorithm Indicates the processing algorithm used to manage audio pitch at varying rates and for scaled audio edits.voidsetAutomaticallyHandlesInterstitialEvents(boolean value)[@property] automaticallyHandlesInterstitialEvents Allows interstitials to be played according to a schedule that's specified by server-side directives.voidsetAutomaticallyPreservesTimeOffsetFromLive(boolean value)[@property] automaticallyPreservesTimeOffsetFromLive Indicates that after the player spends a period of time buffering media, it will skip forward if necessary to restore the playhead's distance from the live edge of the presentation to what it was when buffering began.voidsetCanUseNetworkResourcesForLiveStreamingWhilePaused(boolean value)[@property] canUseNetworkResourcesForLiveStreamingWhilePaused Indicates whether the player item can use network resources to keep playback state up to date while paused For live streaming content, the player item may need to use extra networking and power resources to keep playback state up to date when paused.voidsetConfiguredTimeOffsetFromLive(CMTime value)[@property] configuredTimeOffsetFromLive Indicates how close to the latest content in a live stream playback will begin after a live start or a seek to kCMTimePositiveInfinity.voidsetExternalMetadata(@NotNull NSArray<? extends AVMetadataItem> value)[@property] externalMetadata Supplements metadata contained in the asset.voidsetForwardPlaybackEndTime(CMTime value)[@property] forwardPlaybackEndTime The end time for forward playback.voidsetNowPlayingInfo(@Nullable NSDictionary<java.lang.String,?> value)The current now playing info for the player item.voidsetPreferredForwardBufferDuration(double value)[@property] preferredForwardBufferDuration Indicates the media duration the caller prefers the player to buffer from the network ahead of the playhead to guard against playback disruption.voidsetPreferredMaximumResolution(CGSize value)[@property] preferredMaximumResolution Indicates a preferred upper limit on the resolution of the video to be downloaded (or otherwise transferred) and rendered by the player.voidsetPreferredMaximumResolutionForExpensiveNetworks(CGSize value)[@property] preferredMaximumResolutionForExpensiveNetworks Indicates a preferred upper limit on the resolution of the video to be downloaded that applies only when the download occurs over expensive networks.voidsetPreferredPeakBitRate(double value)[@property] preferredPeakBitRate Indicates the desired limit of network bandwidth consumption for this item.voidsetPreferredPeakBitRateForExpensiveNetworks(double value)[@property] preferredPeakBitRateForExpensiveNetworks Indicates the desired limit of network bandwidth consumption for this item over expensive networks.voidsetReversePlaybackEndTime(CMTime value)[@property] reversePlaybackEndTime The end time for reverse playback.voidsetSeekingWaitsForVideoCompositionRendering(boolean value)[@property] seekingWaitsForVideoCompositionRendering Indicates whether the item's timing follows the displayed video frame when seeking with a video composition By default, item timing is updated as quickly as possible, not waiting for media at new times to be rendered when seeking or during normal playback.voidsetStartsOnFirstEligibleVariant(boolean value)[@property] startsOnFirstEligibleVariant Directs the player to start playback with the first eligible variant that appears in the stream's master playlist.voidsetTextStyleRules(@Nullable NSArray<? extends AVTextStyleRule> value)[@property] textStyleRules An array of AVTextStyleRules representing text styling that can be applied to subtitles and other legible media.voidsetVariantPreferences(long value)[@property] variantPreferences Indicates preferences for variant switching.static voidsetVersion_static(long aVersion)voidsetVideoApertureMode(@NotNull java.lang.String value)[@property] videoApertureMode Specifies the video aperture mode to apply during playback.voidsetVideoComposition(@Nullable AVVideoComposition value)[@property] videoComposition Indicates the video composition settings to be applied during playback.booleanstartsOnFirstEligibleVariant()[@property] startsOnFirstEligibleVariant Directs the player to start playback with the first eligible variant that appears in the stream's master playlist.longstatus()[@property] status The ability of the receiver to be used for playback.voidstepByCount(long stepCount)stepByCount: Moves player's current item's current time forward or backward by the specified number of steps.static org.moe.natj.objc.Classsuperclass_static()@Nullable AVPlayerItemtemplatePlayerItem()[@property] templatePlayerItem If the item was created automatically according to a template item for looping, for interstitial playback, or for other purposes, indicates the AVPlayerItem that was used as the template.@Nullable NSArray<? extends AVTextStyleRule>textStyleRules()[@property] textStyleRules An array of AVTextStyleRules representing text styling that can be applied to subtitles and other legible media.@Nullable CMTimebaseReftimebase()[@property] timebase The item's timebase.@Nullable NSArray<? extends AVMetadataItem>timedMetadata()Deprecated.@NotNull NSArray<? extends AVPlayerItemTrack>tracks()[@property] tracks Provides array of AVPlayerItem tracks.static booleanuseStoredAccessor()Deprecated.longvariantPreferences()[@property] variantPreferences Indicates preferences for variant switching.static longversion_static()@NotNull java.lang.StringvideoApertureMode()[@property] videoApertureMode Specifies the video aperture mode to apply during playback.@Nullable AVVideoCompositionvideoComposition()[@property] videoComposition Indicates the video composition settings to be applied during playback.-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVPlayerItem alloc()
-
allocWithZone
public static AVPlayerItem allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static AVPlayerItem new_objc()
-
playerItemWithAsset
public static AVPlayerItem playerItemWithAsset(@NotNull @NotNull AVAsset asset)
playerItemWithAsset: Returns an instance of AVPlayerItem for playing an AVAsset. Equivalent to +playerItemWithAsset:automaticallyLoadedAssetKeys:, passing @[ @"duration" ] as the value of automaticallyLoadedAssetKeys.- Parameters:
asset-- Returns:
- An instance of AVPlayerItem.
-
playerItemWithAssetAutomaticallyLoadedAssetKeys
public static AVPlayerItem playerItemWithAssetAutomaticallyLoadedAssetKeys(@NotNull @NotNull AVAsset asset, @Nullable @Nullable NSArray<java.lang.String> automaticallyLoadedAssetKeys)
playerItemWithAsset:automaticallyLoadedAssetKeys: Returns an instance of AVPlayerItem for playing an AVAsset. The value of each key in automaticallyLoadedAssetKeys will be automatically be loaded by the underlying AVAsset before the receiver achieves the status AVPlayerItemStatusReadyToPlay; i.e. when the item is ready to play, the value of -[[AVPlayerItem asset] statusOfValueForKey:error:] will be one of the terminal status values greater than AVKeyValueStatusLoading. API-Since: 7.0- Parameters:
asset-automaticallyLoadedAssetKeys- An NSArray of NSStrings, each representing a property key defined by AVAsset. See AVAsset.h for property keys, e.g. duration.- Returns:
- An instance of AVPlayerItem.
-
playerItemWithURL
public static AVPlayerItem playerItemWithURL(@NotNull @NotNull NSURL URL)
playerItemWithURL: Returns an instance of AVPlayerItem for playing a resource at the specified location. Equivalent to +playerItemWithAsset:, passing [AVAsset assetWithURL:URL] as the value of asset.- Parameters:
URL-- Returns:
- An instance of AVPlayerItem.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
accessLog
@Nullable public @Nullable AVPlayerItemAccessLog accessLog()
accessLog Returns an object that represents a snapshot of the network access log. Can be nil. An AVPlayerItemAccessLog provides methods to retrieve the network access log in a format suitable for serialization. If nil is returned then there is no logging information currently available for this AVPlayerItem. An AVPlayerItemNewAccessLogEntryNotification will be posted when new logging information becomes available. However, accessLog might already return a non-nil value even before the first notification is posted.- Returns:
- An autoreleased AVPlayerItemAccessLog instance. API-Since: 4.3
-
addMediaDataCollector
public void addMediaDataCollector(@NotNull @NotNull AVPlayerItemMediaDataCollector collector)addMediaDataCollector: Adds the specified instance of AVPlayerItemMediaDataCollector to the receiver's collection of mediaDataCollectors. This method may incur additional I/O to collect the requested media data asynchronously.- Parameters:
collector- An instance of AVPlayerItemMediaDataCollector API-Since: 9.3
-
addOutput
public void addOutput(@NotNull @NotNull AVPlayerItemOutput output)addOutput: Adds the specified instance of AVPlayerItemOutput to the receiver's collection of outputs. The class of AVPlayerItemOutput provided dictates the data structure that decoded samples are vended in. When an AVPlayerItemOutput is associated with an AVPlayerItem, samples are provided for a media type in accordance with the rules for mixing, composition, or exclusion that the AVPlayer honors among multiple enabled tracks of that media type for its own rendering purposes. For example, video media will be composed according to the instructions provided via AVPlayerItem.videoComposition, if present. Audio media will be mixed according to the parameters provided via AVPlayerItem.audioMix, if present.- Parameters:
output- An instance of AVPlayerItemOutput API-Since: 6.0
-
asset
@NotNull public @NotNull AVAsset asset()
[@property] asset Accessor for underlying AVAsset.
-
audioMix
@Nullable public @Nullable AVAudioMix audioMix()
[@property] audioMix Indicates the audio mix parameters to be applied during playback The inputParameters of the AVAudioMix must have trackIDs that correspond to a track of the receiver's asset. Otherwise they will be ignored. (See AVAudioMix.h for the declaration of AVAudioMixInputParameters and AVPlayerItem's asset property.)
-
audioTimePitchAlgorithm
@NotNull public @NotNull java.lang.String audioTimePitchAlgorithm()
[@property] audioTimePitchAlgorithm Indicates the processing algorithm used to manage audio pitch at varying rates and for scaled audio edits. Constants for various time pitch algorithms, e.g. AVAudioTimePitchSpectral, are defined in AVAudioProcessingSettings.h. The default value for applications linked on or after iOS 15.0 or macOS 12.0 is AVAudioTimePitchAlgorithmTimeDomain. For iOS versions prior to 15.0 the default value is AVAudioTimePitchAlgorithmLowQualityZeroLatency. For macOS versions prior to 12.0 the default value is AVAudioTimePitchAlgorithmSpectral. API-Since: 7.0
-
automaticallyLoadedAssetKeys
@NotNull public @NotNull NSArray<java.lang.String> automaticallyLoadedAssetKeys()
[@property] automaticallyLoadedAssetKeys An array of property keys defined on AVAsset. The value of each key in the array is automatically loaded while the receiver is being made ready to play. The value of each key in automaticallyLoadedAssetKeys will be automatically be loaded by the underlying AVAsset before the receiver achieves the status AVPlayerItemStatusReadyToPlay; i.e. when the item is ready to play, the value of -[[AVPlayerItem asset] statusOfValueForKey:error:] will be AVKeyValueStatusLoaded. If loading of any of the values fails, the status of the AVPlayerItem will change instead to AVPlayerItemStatusFailed.. API-Since: 7.0
-
canPlayFastForward
public boolean canPlayFastForward()
For releases of macOS prior to 10.9 and releases of iOS prior to 7.0, indicates whether the item can be played at rates greater than 1.0. Starting with macOS 10.9 and iOS 7.0, all AVPlayerItems with status AVPlayerItemReadyToPlay can be played at rates between 1.0 and 2.0, inclusive, even if canPlayFastForward is NO; for those releases canPlayFastForward indicates whether the item can be played at rates greater than 2.0. API-Since: 5.0
-
canPlayFastReverse
public boolean canPlayFastReverse()
indicates whether the item can be played at rates less than -1.0 API-Since: 5.0
-
canPlayReverse
public boolean canPlayReverse()
indicates whether the item can be played at rate -1.0 API-Since: 6.0
-
canPlaySlowForward
public boolean canPlaySlowForward()
indicates whether the item can be played at rates between 0.0 and 1.0 API-Since: 6.0
-
canPlaySlowReverse
public boolean canPlaySlowReverse()
indicates whether the item can be played at rates less between 0.0 and -1.0 API-Since: 6.0
-
canStepBackward
public boolean canStepBackward()
indicates whether the item supports stepping backward; see -stepByCount:. Once the item has become ready to play, the value of canStepBackward does not change even when boundary conditions are reached, such as when the item's currentTime is equal to kCMTimeZero. API-Since: 6.0
-
canStepForward
public boolean canStepForward()
Indicates whether the item supports stepping forward; see -stepByCount:. Once the item has become ready to play, the value of canStepForward does not change even when boundary conditions are reached, such as when the item's currentTime is its end time. API-Since: 6.0
-
canUseNetworkResourcesForLiveStreamingWhilePaused
public boolean canUseNetworkResourcesForLiveStreamingWhilePaused()
[@property] canUseNetworkResourcesForLiveStreamingWhilePaused Indicates whether the player item can use network resources to keep playback state up to date while paused For live streaming content, the player item may need to use extra networking and power resources to keep playback state up to date when paused. For example, when this property is set to YES, the seekableTimeRanges property will be periodically updated to reflect the current state of the live stream. For clients linked on or after macOS 10.11 or iOS 9.0, the default value is NO. To minimize power usage, avoid setting this property to YES when you do not need playback state to stay up to date while paused. API-Since: 9.0
-
cancelPendingSeeks
public void cancelPendingSeeks()
cancelPendingSeeks Cancel any pending seek requests and invoke the corresponding completion handlers if present. Use this method to cancel and release the completion handlers of pending seeks. The finished parameter of the completion handlers will be set to NO. API-Since: 5.0
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
copyWithZonein interfaceNSCopying
-
currentDate
@Nullable public @Nullable NSDate currentDate()
currentDate If currentTime is mapped to a particular (real-time) date, return that date.- Returns:
- Returns the date of current playback, or nil if playback is not mapped to any date.
-
currentMediaSelection
@NotNull public @NotNull AVMediaSelection currentMediaSelection()
[@property] currentMediaSelection Provides an instance of AVMediaSelection carrying current selections for each of the receiver's media selection groups. API-Since: 9.0
-
currentTime
public CMTime currentTime()
currentTime Returns the current time of the item. Returns the current time of the item. Not key-value observable; use -[AVPlayer addPeriodicTimeObserverForInterval:queue:usingBlock:] instead.- Returns:
- A CMTime
-
customVideoCompositor
@Nullable public @Nullable AVVideoCompositing customVideoCompositor()
[@property] customVideoCompositor Indicates the custom video compositor instance. This property is nil if there is no video compositor, or if the internal video compositor is in use. This reference can be used to provide extra context to the custom video compositor instance if required. The value of this property can change as a result of setting the `videoComposition` property. Before macOS 13, iOS 16, tvOS 16, and watchOS 9, this property must be accessed on the main thread/queue. API-Since: 7.0
-
duration
public CMTime duration()
[@property] duration Indicates the duration of the item, not considering either its forwardPlaybackEndTime or reversePlaybackEndTime. This property is observable. The duration of an item can change dynamically during playback. Unless you omit @"duration" from the array of asset keys you pass to +playerItemWithAsset:automaticallyLoadedAssetKeys: or -initWithAsset:automaticallyLoadedAssetKeys:, the value of this property will accord with the properties of the underlying AVAsset and the current state of playback once the receiver becomes ready to play. Before the underlying duration has been loaded, the value of this property is kCMTimeIndefinite. Use key-value observation to obtain a valid duration as soon as it becomes available. (Note that the value of duration may remain kCMTimeIndefinite, e.g. for live streams.) API-Since: 4.3
-
error
@Nullable public @Nullable NSError error()
[@property] error If the receiver's status is AVPlayerItemStatusFailed, this describes the error that caused the failure. The value of this property is an NSError that describes what caused the receiver to no longer be able to be played. If the receiver's status is not AVPlayerItemStatusFailed, the value of this property is nil.
-
errorLog
@Nullable public @Nullable AVPlayerItemErrorLog errorLog()
errorLog Returns an object that represents a snapshot of the error log. Can be nil. An AVPlayerItemErrorLog provides methods to retrieve the error log in a format suitable for serialization. If nil is returned then there is no logging information currently available for this AVPlayerItem.- Returns:
- An autoreleased AVPlayerItemErrorLog instance. API-Since: 4.3
-
forwardPlaybackEndTime
public CMTime forwardPlaybackEndTime()
[@property] forwardPlaybackEndTime The end time for forward playback. Specifies the time at which playback should end when the playback rate is positive (see AVPlayer's rate property). The default value is kCMTimeInvalid, which indicates that no end time for forward playback is specified. In this case, the effective end time for forward playback is the receiver's duration. When the end time is reached, the receiver will post AVPlayerItemDidPlayToEndTimeNotification and the AVPlayer will take the action indicated by the value of its actionAtItemEnd property (see AVPlayerActionAtItemEnd in AVPlayer.h). The value of this property has no effect on playback when the rate is negative.
-
init
public AVPlayerItem init()
-
initWithAsset
public AVPlayerItem initWithAsset(@NotNull @NotNull AVAsset asset)
initWithAsset: Initializes an AVPlayerItem with an AVAsset. Equivalent to -initWithAsset:automaticallyLoadedAssetKeys:, passing @[ @"duration" ] as the value of automaticallyLoadedAssetKeys.- Parameters:
asset-- Returns:
- An instance of AVPlayerItem
-
initWithAssetAutomaticallyLoadedAssetKeys
public AVPlayerItem initWithAssetAutomaticallyLoadedAssetKeys(@NotNull @NotNull AVAsset asset, @Nullable @Nullable NSArray<java.lang.String> automaticallyLoadedAssetKeys)
initWithAsset:automaticallyLoadedAssetKeys: Initializes an AVPlayerItem with an AVAsset. The value of each key in automaticallyLoadedAssetKeys will be automatically be loaded by the underlying AVAsset before the receiver achieves the status AVPlayerItemStatusReadyToPlay; i.e. when the item is ready to play, the value of -[[AVPlayerItem asset] statusOfValueForKey:error:] will be one of the terminal status values greater than AVKeyValueStatusLoading. API-Since: 7.0- Parameters:
asset- An instance of AVAsset.automaticallyLoadedAssetKeys- An NSArray of NSStrings, each representing a property key defined by AVAsset. See AVAsset.h for property keys, e.g. duration.- Returns:
- An instance of AVPlayerItem
-
initWithURL
public AVPlayerItem initWithURL(@NotNull @NotNull NSURL URL)
initWithURL: Initializes an AVPlayerItem with an NSURL. Equivalent to -initWithAsset:, passing [AVAsset assetWithURL:URL] as the value of asset.- Parameters:
URL-- Returns:
- An instance of AVPlayerItem
-
isPlaybackBufferEmpty
public boolean isPlaybackBufferEmpty()
indicates that playback has consumed all buffered media and that playback will stall or end
-
isPlaybackBufferFull
public boolean isPlaybackBufferFull()
[@property] playbackBufferFull Indicates that the internal media buffer is full and that further I/O is suspended. This property reports that the data buffer used for playback has reach capacity. Despite the playback buffer reaching capacity there might not exist sufficient statistical data to support a playbackLikelyToKeepUp prediction of YES. See playbackLikelyToKeepUp above.
-
isPlaybackLikelyToKeepUp
public boolean isPlaybackLikelyToKeepUp()
[@property] playbackLikelyToKeepUp Indicates whether the item will likely play through without stalling. This property communicates a prediction of playability. Factors considered in this prediction include I/O throughput and media decode performance. It is possible for playbackLikelyToKeepUp to indicate NO while the property playbackBufferFull indicates YES. In this event the playback buffer has reached capacity but there isn't the statistical data to support a prediction that playback is likely to keep up. It is left to the application programmer to decide to continue media playback or not. See playbackBufferFull below.
-
loadedTimeRanges
@NotNull public @NotNull NSArray<? extends NSValue> loadedTimeRanges()
[@property] loadedTimeRanges This property provides a collection of time ranges for which the player has the media data readily available. The ranges provided might be discontinuous. Returns an NSArray of NSValues containing CMTimeRanges.
-
mediaDataCollectors
@NotNull public @NotNull NSArray<? extends AVPlayerItemMediaDataCollector> mediaDataCollectors()
[@property] mediaDataCollectors The collection of associated mediaDataCollectors. API-Since: 9.3
-
outputs
@NotNull public @NotNull NSArray<? extends AVPlayerItemOutput> outputs()
[@property] outputs The collection of associated outputs. API-Since: 6.0
-
preferredForwardBufferDuration
public double preferredForwardBufferDuration()
[@property] preferredForwardBufferDuration Indicates the media duration the caller prefers the player to buffer from the network ahead of the playhead to guard against playback disruption. The value is in seconds. If it is set to 0, the player will choose an appropriate level of buffering for most use cases. Note that setting this property to a low value will increase the chance that playback will stall and re-buffer, while setting it to a high value will increase demand on system resources. Note that the system may buffer less than the value of this property in order to manage resource consumption. API-Since: 10.0
-
preferredPeakBitRate
public double preferredPeakBitRate()
[@property] preferredPeakBitRate Indicates the desired limit of network bandwidth consumption for this item. Set preferredPeakBitRate to non-zero to indicate that the player should attempt to limit item playback to that bit rate, expressed in bits per second. If network bandwidth consumption cannot be lowered to meet the preferredPeakBitRate, it will be reduced as much as possible while continuing to play the item. API-Since: 8.0
-
presentationSize
public CGSize presentationSize()
[@property] presentationSize The size of the receiver as presented by the player. Indicates the size at which the visual portion of the item is presented by the player; can be scaled from this size to fit within the bounds of an AVPlayerLayer via its videoGravity property. Can be scaled arbitrarily for presentation via the frame property of an AVPlayerLayer. The value of this property will accord with the properties of the underlying media resource when the receiver becomes ready to play. Before the underlying media resource is sufficiently loaded, its value is CGSizeZero. Use key-value observation to obtain a valid presentationSize as soon as it becomes available. (Note that the value of presentationSize may remain CGSizeZero, e.g. for audio-only items.)
-
removeMediaDataCollector
public void removeMediaDataCollector(@NotNull @NotNull AVPlayerItemMediaDataCollector collector)removeMediaDataCollector: Removes the specified instance of AVPlayerItemMediaDataCollector from the receiver's collection of mediaDataCollectors.- Parameters:
collector- An instance of AVPlayerItemMediaDataCollector API-Since: 9.3
-
removeOutput
public void removeOutput(@NotNull @NotNull AVPlayerItemOutput output)removeOutput: Removes the specified instance of AVPlayerItemOutput from the receiver's collection of outputs.- Parameters:
output- An instance of AVPlayerItemOutput API-Since: 6.0
-
reversePlaybackEndTime
public CMTime reversePlaybackEndTime()
[@property] reversePlaybackEndTime The end time for reverse playback. Specifies the time at which playback should end when the playback rate is negative (see AVPlayer's rate property). The default value is kCMTimeInvalid, which indicates that no end time for reverse playback is specified. In this case, the effective end time for reverse playback is kCMTimeZero. When the end time is reached, the receiver will post AVPlayerItemDidPlayToEndTimeNotification and the AVPlayer will take the action indicated by the value of its actionAtItemEnd property (see AVPlayerActionAtItemEnd in AVPlayer.h). The value of this property has no effect on playback when the rate is positive.
-
seekToDate
@Deprecated public boolean seekToDate(@NotNull @NotNull NSDate date)Deprecated.seekToDate move playhead to a point corresponding to a particular date. For playback content that is associated with a range of dates, move the playhead to point within that range. Will fail if the supplied date is outside the range or if the content is not associated with a range of dates.- Parameters:
date- The new position for the playhead.- Returns:
- Returns true if the playhead was moved to the supplied date. API-Since: 4.0 Deprecated-Since: 11.0 Deprecated-Message: Use -seekToDate:completionHandler:, passing nil for the completionHandler if you don't require notification of completion
-
seekToDateCompletionHandler
public boolean seekToDateCompletionHandler(@NotNull @NotNull NSDate date, @Nullable @Nullable AVPlayerItem.Block_seekToDateCompletionHandler completionHandler)seekToDate:completionHandler: move playhead to a point corresponding to a particular date, and invokes the specified block when the seek operation has either been completed or been interrupted. For playback content that is associated with a range of dates, move the playhead to point within that range and invokes the completion handler when the seek operation is complete. Will fail if the supplied date is outside the range or if the content is not associated with a range of dates. The completion handler for any prior seek request that is still in process will be invoked immediately with the finished parameter set to NO. If the new request completes without being interrupted by another seek request or by any other operation, the specified completion handler will be invoked with the finished parameter set to YES.- Parameters:
date- The new position for the playhead.completionHandler- The block to invoke when seek operation is complete- Returns:
- Returns true if the playhead was moved to the supplied date. API-Since: 6.0
-
seekToTime
@Deprecated public void seekToTime(CMTime time)
Deprecated.seekToTime: Moves the playback cursor. Use this method to seek to a specified time for the item. The time seeked to may differ from the specified time for efficiency. For sample accurate seeking see seekToTime:toleranceBefore:toleranceAfter:. If the seek time is outside of seekable time ranges as indicated by seekableTimeRanges property, the seek request will be cancelled. API-Since: 4.0 Deprecated-Since: 11.0 Deprecated-Message: Use -seekToTime:completionHandler:, passing nil for the completionHandler if you don't require notification of completion- Parameters:
time-
-
seekToTimeCompletionHandler
public void seekToTimeCompletionHandler(CMTime time, @Nullable @Nullable AVPlayerItem.Block_seekToTimeCompletionHandler completionHandler)
seekToTime:completionHandler: Moves the playback cursor and invokes the specified block when the seek operation has either been completed or been interrupted. Use this method to seek to a specified time for the item and to be notified when the seek operation is complete. The completion handler for any prior seek request that is still in process will be invoked immediately with the finished parameter set to NO. If the new request completes without being interrupted by another seek request or by any other operation the specified completion handler will be invoked with the finished parameter set to YES. If the seek time is outside of seekable time ranges as indicated by seekableTimeRanges property, the seek request will be cancelled and the completion handler will be invoked with the finished parameter set to NO. This method throws an exception if time is invalid or indefinite. API-Since: 5.0- Parameters:
time-completionHandler-
-
seekToTimeToleranceBeforeToleranceAfter
@Deprecated public void seekToTimeToleranceBeforeToleranceAfter(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter)
Deprecated.seekToTime:toleranceBefore:toleranceAfter: Moves the playback cursor within a specified time bound. Use this method to seek to a specified time for the item. The time seeked to will be within the range [time-toleranceBefore, time+toleranceAfter] and may differ from the specified time for efficiency. Pass kCMTimeZero for both toleranceBefore and toleranceAfter to request sample accurate seeking which may incur additional decoding delay. Messaging this method with beforeTolerance:kCMTimePositiveInfinity and afterTolerance:kCMTimePositiveInfinity is the same as messaging seekToTime: directly. Seeking is constrained by the collection of seekable time ranges. If you seek to a time outside all of the seekable ranges the seek will result in a currentTime within the seekable ranges. If the seek time is outside of seekable time ranges as indicated by seekableTimeRanges property, the seek request will be cancelled. API-Since: 4.0 Deprecated-Since: 11.0 Deprecated-Message: Use -seekToTime:toleranceBefore:toleranceAfter:completionHandler:, passing nil for the completionHandler if you don't require notification of completion- Parameters:
time-toleranceBefore-toleranceAfter-
-
seekToTimeToleranceBeforeToleranceAfterCompletionHandler
public void seekToTimeToleranceBeforeToleranceAfterCompletionHandler(CMTime time, CMTime toleranceBefore, CMTime toleranceAfter, @Nullable @Nullable AVPlayerItem.Block_seekToTimeToleranceBeforeToleranceAfterCompletionHandler completionHandler)
seekToTime:toleranceBefore:toleranceAfter:completionHandler: Moves the playback cursor within a specified time bound and invokes the specified block when the seek operation has either been completed or been interrupted. Use this method to seek to a specified time for the item and to be notified when the seek operation is complete. The time seeked to will be within the range [time-toleranceBefore, time+toleranceAfter] and may differ from the specified time for efficiency. Pass kCMTimeZero for both toleranceBefore and toleranceAfter to request sample accurate seeking which may incur additional decoding delay. Messaging this method with beforeTolerance:kCMTimePositiveInfinity and afterTolerance:kCMTimePositiveInfinity is the same as messaging seekToTime: directly. The completion handler for any prior seek request that is still in process will be invoked immediately with the finished parameter set to NO. If the new request completes without being interrupted by another seek request or by any other operation the specified completion handler will be invoked with the finished parameter set to YES. If the seek time is outside of seekable time ranges as indicated by seekableTimeRanges property, the seek request will be cancelled and the completion handler will be invoked with the finished parameter set to NO. This method throws an exception if time is invalid or indefinite or if tolerance before or tolerance after is invalid or negative. API-Since: 5.0- Parameters:
time-toleranceBefore-toleranceAfter-completionHandler-
-
seekableTimeRanges
@NotNull public @NotNull NSArray<? extends NSValue> seekableTimeRanges()
[@property] seekableTimeRanges This property provides a collection of time ranges that the player item can seek to. The ranges provided might be discontinous. Returns an NSArray of NSValues containing CMTimeRanges.
-
seekingWaitsForVideoCompositionRendering
public boolean seekingWaitsForVideoCompositionRendering()
[@property] seekingWaitsForVideoCompositionRendering Indicates whether the item's timing follows the displayed video frame when seeking with a video composition By default, item timing is updated as quickly as possible, not waiting for media at new times to be rendered when seeking or during normal playback. The latency that occurs, for example, between the completion of a seek operation and the display of a video frame at a new time is negligible in most situations. However, when video compositions are in use, the processing of video for any particular time may introduce noticeable latency. Therefore it may be desirable when a video composition is in use for the item's timing be updated only after the video frame for a time has been displayed. This allows, for instance, an AVSynchronizedLayer associated with an AVPlayerItem to remain in synchronization with the displayed video and for the currentTime property to return the time of the displayed video. This property has no effect on items for which videoComposition is nil. API-Since: 6.0
-
selectMediaOptionInMediaSelectionGroup
public void selectMediaOptionInMediaSelectionGroup(@Nullable @Nullable AVMediaSelectionOption mediaSelectionOption, @NotNull @NotNull AVMediaSelectionGroup mediaSelectionGroup)selectMediaOption:inMediaSelectionGroup: Selects the media option described by the specified instance of AVMediaSelectionOption in the specified AVMediaSelectionGroup and deselects all other options in that group. If the specified media selection option isn't a member of the specified media selection group, no change in presentation state will result. If the value of the property allowsEmptySelection of the AVMediaSelectionGroup is YES, you can pass nil for mediaSelectionOption to deselect all media selection options in the group. Note that if multiple options within a group meet your criteria for selection according to locale or other considerations, and if these options are otherwise indistinguishable to you according to media characteristics that are meaningful for your application, content is typically authored so that the first available option that meets your criteria is appropriate for selection. Before macOS 13, iOS 16, tvOS 16, and watchOS 9, this method must be invoked on the main thread/queue. API-Since: 5.0- Parameters:
mediaSelectionOption- The option to select.mediaSelectionGroup- The media selection group, obtained from the receiver's asset, that contains the specified option.
-
selectMediaOptionAutomaticallyInMediaSelectionGroup
public void selectMediaOptionAutomaticallyInMediaSelectionGroup(@NotNull @NotNull AVMediaSelectionGroup mediaSelectionGroup)selectMediaOptionAutomaticallyInMediaSelectionGroup: Selects the media option in the specified media selection group that best matches the AVPlayer's current automatic selection criteria. Also allows automatic selection to be re-applied to the specified group subsequently if the relevant criteria are changed. Has no effect unless the appliesMediaSelectionCriteriaAutomatically property of the associated AVPlayer is YES and unless automatic media selection has previously been overridden via -[AVPlayerItem selectMediaOption:inMediaSelectionGroup:]. Before macOS 13, iOS 16, tvOS 16, and watchOS 9, this method must be invoked on the main thread/queue. API-Since: 7.0- Parameters:
mediaSelectionGroup- The media selection group, obtained from the receiver's asset, that contains the specified option.
-
selectedMediaOptionInMediaSelectionGroup
@Nullable @Deprecated public @Nullable AVMediaSelectionOption selectedMediaOptionInMediaSelectionGroup(@NotNull @NotNull AVMediaSelectionGroup mediaSelectionGroup)
Deprecated.selectedMediaOptionInMediaSelectionGroup: Indicates the media selection option that's currently selected from the specified group. May be nil. If the value of the property allowsEmptySelection of the AVMediaSelectionGroup is YES, the currently selected option in the group may be nil. API-Since: 5.0 Deprecated-Since: 11.0 Deprecated-Message: Use currentMediaSelection to obtain an instance of AVMediaSelection, which encompasses the currently selected AVMediaSelectionOption in each of the available AVMediaSelectionGroups- Parameters:
mediaSelectionGroup- A media selection group obtained from the receiver's asset.- Returns:
- An instance of AVMediaSelectionOption that describes the currently selection option in the group.
-
setAudioMix
public void setAudioMix(@Nullable @Nullable AVAudioMix value)[@property] audioMix Indicates the audio mix parameters to be applied during playback The inputParameters of the AVAudioMix must have trackIDs that correspond to a track of the receiver's asset. Otherwise they will be ignored. (See AVAudioMix.h for the declaration of AVAudioMixInputParameters and AVPlayerItem's asset property.)
-
setAudioTimePitchAlgorithm
public void setAudioTimePitchAlgorithm(@NotNull @NotNull java.lang.String value)[@property] audioTimePitchAlgorithm Indicates the processing algorithm used to manage audio pitch at varying rates and for scaled audio edits. Constants for various time pitch algorithms, e.g. AVAudioTimePitchSpectral, are defined in AVAudioProcessingSettings.h. The default value for applications linked on or after iOS 15.0 or macOS 12.0 is AVAudioTimePitchAlgorithmTimeDomain. For iOS versions prior to 15.0 the default value is AVAudioTimePitchAlgorithmLowQualityZeroLatency. For macOS versions prior to 12.0 the default value is AVAudioTimePitchAlgorithmSpectral. API-Since: 7.0
-
setCanUseNetworkResourcesForLiveStreamingWhilePaused
public void setCanUseNetworkResourcesForLiveStreamingWhilePaused(boolean value)
[@property] canUseNetworkResourcesForLiveStreamingWhilePaused Indicates whether the player item can use network resources to keep playback state up to date while paused For live streaming content, the player item may need to use extra networking and power resources to keep playback state up to date when paused. For example, when this property is set to YES, the seekableTimeRanges property will be periodically updated to reflect the current state of the live stream. For clients linked on or after macOS 10.11 or iOS 9.0, the default value is NO. To minimize power usage, avoid setting this property to YES when you do not need playback state to stay up to date while paused. API-Since: 9.0
-
setForwardPlaybackEndTime
public void setForwardPlaybackEndTime(CMTime value)
[@property] forwardPlaybackEndTime The end time for forward playback. Specifies the time at which playback should end when the playback rate is positive (see AVPlayer's rate property). The default value is kCMTimeInvalid, which indicates that no end time for forward playback is specified. In this case, the effective end time for forward playback is the receiver's duration. When the end time is reached, the receiver will post AVPlayerItemDidPlayToEndTimeNotification and the AVPlayer will take the action indicated by the value of its actionAtItemEnd property (see AVPlayerActionAtItemEnd in AVPlayer.h). The value of this property has no effect on playback when the rate is negative.
-
setPreferredForwardBufferDuration
public void setPreferredForwardBufferDuration(double value)
[@property] preferredForwardBufferDuration Indicates the media duration the caller prefers the player to buffer from the network ahead of the playhead to guard against playback disruption. The value is in seconds. If it is set to 0, the player will choose an appropriate level of buffering for most use cases. Note that setting this property to a low value will increase the chance that playback will stall and re-buffer, while setting it to a high value will increase demand on system resources. Note that the system may buffer less than the value of this property in order to manage resource consumption. API-Since: 10.0
-
setPreferredPeakBitRate
public void setPreferredPeakBitRate(double value)
[@property] preferredPeakBitRate Indicates the desired limit of network bandwidth consumption for this item. Set preferredPeakBitRate to non-zero to indicate that the player should attempt to limit item playback to that bit rate, expressed in bits per second. If network bandwidth consumption cannot be lowered to meet the preferredPeakBitRate, it will be reduced as much as possible while continuing to play the item. API-Since: 8.0
-
setReversePlaybackEndTime
public void setReversePlaybackEndTime(CMTime value)
[@property] reversePlaybackEndTime The end time for reverse playback. Specifies the time at which playback should end when the playback rate is negative (see AVPlayer's rate property). The default value is kCMTimeInvalid, which indicates that no end time for reverse playback is specified. In this case, the effective end time for reverse playback is kCMTimeZero. When the end time is reached, the receiver will post AVPlayerItemDidPlayToEndTimeNotification and the AVPlayer will take the action indicated by the value of its actionAtItemEnd property (see AVPlayerActionAtItemEnd in AVPlayer.h). The value of this property has no effect on playback when the rate is positive.
-
setSeekingWaitsForVideoCompositionRendering
public void setSeekingWaitsForVideoCompositionRendering(boolean value)
[@property] seekingWaitsForVideoCompositionRendering Indicates whether the item's timing follows the displayed video frame when seeking with a video composition By default, item timing is updated as quickly as possible, not waiting for media at new times to be rendered when seeking or during normal playback. The latency that occurs, for example, between the completion of a seek operation and the display of a video frame at a new time is negligible in most situations. However, when video compositions are in use, the processing of video for any particular time may introduce noticeable latency. Therefore it may be desirable when a video composition is in use for the item's timing be updated only after the video frame for a time has been displayed. This allows, for instance, an AVSynchronizedLayer associated with an AVPlayerItem to remain in synchronization with the displayed video and for the currentTime property to return the time of the displayed video. This property has no effect on items for which videoComposition is nil. API-Since: 6.0
-
setTextStyleRules
public void setTextStyleRules(@Nullable @Nullable NSArray<? extends AVTextStyleRule> value)[@property] textStyleRules An array of AVTextStyleRules representing text styling that can be applied to subtitles and other legible media. The styling information contained in each AVTextStyleRule object in the array is used only when no equivalent styling information is provided by the media resource being played. For example, if the text style rules specify Courier font but the media resource specifies Helvetica font, the text will be drawn using Helvetica font. This property has an effect only for tracks with media subtype kCMSubtitleFormatType_WebVTT. API-Since: 6.0
-
setVideoComposition
public void setVideoComposition(@Nullable @Nullable AVVideoComposition value)[@property] videoComposition Indicates the video composition settings to be applied during playback. Before macOS 13, iOS 16, tvOS 16, and watchOS 9, this property must be accessed on the main thread/queue. This property throws an exception if a video composition is set with any of the following values: - renderSize, renderScale, or frameDuration is less than or equal to zero - sourceTrackIDForFrameTiming is less than or equal to zero - uses AVVideoCompositionCoreAnimationTool (works for offline rendering only) API-Since: 4.0
-
status
public long status()
[@property] status The ability of the receiver to be used for playback. The value of this property is an AVPlayerItemStatus that indicates whether the receiver can be used for playback. When the value of this property is AVPlayerItemStatusFailed, the receiver can no longer be used for playback and a new instance needs to be created in its place. When this happens, clients can check the value of the error property to determine the nature of the failure. The value of this property will not be updated after the receiver is removed from an AVPlayer. This property is key value observable.
-
stepByCount
public void stepByCount(long stepCount)
stepByCount: Moves player's current item's current time forward or backward by the specified number of steps. The size of each step depends on the enabled AVPlayerItemTracks of the AVPlayerItem. This method must be invoked on the main thread/queue.- Parameters:
stepCount- The number of steps by which to move. A positive number results in stepping forward, a negative number in stepping backward.
-
textStyleRules
@Nullable public @Nullable NSArray<? extends AVTextStyleRule> textStyleRules()
[@property] textStyleRules An array of AVTextStyleRules representing text styling that can be applied to subtitles and other legible media. The styling information contained in each AVTextStyleRule object in the array is used only when no equivalent styling information is provided by the media resource being played. For example, if the text style rules specify Courier font but the media resource specifies Helvetica font, the text will be drawn using Helvetica font. This property has an effect only for tracks with media subtype kCMSubtitleFormatType_WebVTT. API-Since: 6.0
-
timebase
@Nullable public @Nullable CMTimebaseRef timebase()
[@property] timebase The item's timebase. You can examine the timebase to discover the relationship between the item's time and the source clock used for drift synchronization. This timebase is read-only; you cannot set its time or rate to affect playback. API-Since: 6.0
-
timedMetadata
@Nullable @Deprecated public @Nullable NSArray<? extends AVMetadataItem> timedMetadata()
Deprecated.[@property] timedMetadata Provides an NSArray of AVMetadataItems representing the timed metadata encountered most recently within the media as it plays. May be nil. Notifications of changes are available via key-value observation. As an optimization for playback, AVPlayerItem may omit the processing of timed metadata when no observer of this property is registered. Therefore, when no such observer is registered, the value of the timedMetadata property may remain nil regardless of the contents of the underlying media. This property must be accessed on the main thread/queue. API-Since: 4.0 Deprecated-Since: 13.0 Deprecated-Message: Use AVPlayerItemMetadataOutput to obtain timed metadata
-
tracks
@NotNull public @NotNull NSArray<? extends AVPlayerItemTrack> tracks()
[@property] tracks Provides array of AVPlayerItem tracks. Observable (can change dynamically during playback). The value of this property will accord with the properties of the underlying media resource when the receiver becomes ready to play. Before the underlying media resource has been sufficiently loaded, its value is an empty NSArray. Use key-value observation to obtain a valid array of tracks as soon as it becomes available.
-
videoComposition
@Nullable public @Nullable AVVideoComposition videoComposition()
[@property] videoComposition Indicates the video composition settings to be applied during playback. Before macOS 13, iOS 16, tvOS 16, and watchOS 9, this property must be accessed on the main thread/queue. This property throws an exception if a video composition is set with any of the following values: - renderSize, renderScale, or frameDuration is less than or equal to zero - sourceTrackIDForFrameTiming is less than or equal to zero - uses AVVideoCompositionCoreAnimationTool (works for offline rendering only) API-Since: 4.0
-
preferredMaximumResolution
public CGSize preferredMaximumResolution()
[@property] preferredMaximumResolution Indicates a preferred upper limit on the resolution of the video to be downloaded (or otherwise transferred) and rendered by the player. The default value is CGSizeZero, which indicates that the client enforces no limit on video resolution. Other values indicate a preferred maximum video resolution. It only applies to HTTP Live Streaming asset. API-Since: 11.0
-
setPreferredMaximumResolution
public void setPreferredMaximumResolution(CGSize value)
[@property] preferredMaximumResolution Indicates a preferred upper limit on the resolution of the video to be downloaded (or otherwise transferred) and rendered by the player. The default value is CGSizeZero, which indicates that the client enforces no limit on video resolution. Other values indicate a preferred maximum video resolution. It only applies to HTTP Live Streaming asset. API-Since: 11.0
-
setVideoApertureMode
public void setVideoApertureMode(@NotNull @NotNull java.lang.String value)[@property] videoApertureMode Specifies the video aperture mode to apply during playback. See AVVideoApertureMode constants defined in AVVideoSettings.h. Default is AVVideoApertureModeCleanAperture. API-Since: 11.0
-
videoApertureMode
@NotNull public @NotNull java.lang.String videoApertureMode()
[@property] videoApertureMode Specifies the video aperture mode to apply during playback. See AVVideoApertureMode constants defined in AVVideoSettings.h. Default is AVVideoApertureModeCleanAperture. API-Since: 11.0
-
automaticallyPreservesTimeOffsetFromLive
public boolean automaticallyPreservesTimeOffsetFromLive()
[@property] automaticallyPreservesTimeOffsetFromLive Indicates that after the player spends a period of time buffering media, it will skip forward if necessary to restore the playhead's distance from the live edge of the presentation to what it was when buffering began. If the value of this property is YES and the player must buffer media from the network in order to resume playback, the player will seek forward if necessary before resuming playback to restore the position that the playhead had when rebuffering began, relative to the end of the current AVPlayerItem's seekableTimeRange. This behavior applies to media buffering that occurs as a consequence of starting playback, seeking, and recovering from a playback stall. Note that if the network cannot deliver media quickly enough to maintain the playback rate, playback may stall interminably. This property value has no effect if the asset is not a live stream. The default value of this property is NO. API-Since: 13.0
-
configuredTimeOffsetFromLive
public CMTime configuredTimeOffsetFromLive()
[@property] configuredTimeOffsetFromLive Indicates how close to the latest content in a live stream playback will begin after a live start or a seek to kCMTimePositiveInfinity. For non-live assets this value is kCMTimeInvalid. API-Since: 13.0
-
isAudioSpatializationAllowed
@Deprecated public boolean isAudioSpatializationAllowed()
Deprecated.[@property] audioSpatializationAllowed Indicates whether audio spatialization is allowed When audio spatialization is allowed for an AVPlayerItem, the AVPlayer may render multichannel audio if available even if the output device doesn't support multichannel audio on its own, via use of a synthetic channel layout. When audio spatialization is not allowed, the AVPlayer must render audio with a channel layout that best matches the capabilities of the output device. This property is not observable. Defaults to YES. API-Since: 13.0 Deprecated-Since: 100000.0
-
recommendedTimeOffsetFromLive
public CMTime recommendedTimeOffsetFromLive()
[@property] recommendedTimeOffsetFromLive A recommended value for configuredTimeOffsetFromLive, based on observed network conditions. For non-live assets this value is kCMTimeInvalid. API-Since: 13.0
-
setAudioSpatializationAllowed
@Deprecated public void setAudioSpatializationAllowed(boolean value)
Deprecated.[@property] audioSpatializationAllowed Indicates whether audio spatialization is allowed When audio spatialization is allowed for an AVPlayerItem, the AVPlayer may render multichannel audio if available even if the output device doesn't support multichannel audio on its own, via use of a synthetic channel layout. When audio spatialization is not allowed, the AVPlayer must render audio with a channel layout that best matches the capabilities of the output device. This property is not observable. Defaults to YES. API-Since: 13.0 Deprecated-Since: 100000.0
-
setAutomaticallyPreservesTimeOffsetFromLive
public void setAutomaticallyPreservesTimeOffsetFromLive(boolean value)
[@property] automaticallyPreservesTimeOffsetFromLive Indicates that after the player spends a period of time buffering media, it will skip forward if necessary to restore the playhead's distance from the live edge of the presentation to what it was when buffering began. If the value of this property is YES and the player must buffer media from the network in order to resume playback, the player will seek forward if necessary before resuming playback to restore the position that the playhead had when rebuffering began, relative to the end of the current AVPlayerItem's seekableTimeRange. This behavior applies to media buffering that occurs as a consequence of starting playback, seeking, and recovering from a playback stall. Note that if the network cannot deliver media quickly enough to maintain the playback rate, playback may stall interminably. This property value has no effect if the asset is not a live stream. The default value of this property is NO. API-Since: 13.0
-
setConfiguredTimeOffsetFromLive
public void setConfiguredTimeOffsetFromLive(CMTime value)
[@property] configuredTimeOffsetFromLive Indicates how close to the latest content in a live stream playback will begin after a live start or a seek to kCMTimePositiveInfinity. For non-live assets this value is kCMTimeInvalid. API-Since: 13.0
-
externalMetadata
@NotNull public @NotNull NSArray<? extends AVMetadataItem> externalMetadata()
[@property] externalMetadata Supplements metadata contained in the asset. AVPlayerViewController will publish this metadata as now playing info when AVPlayerViewController.updatesNowPlayingInfoCenter is YES. In addition, some metadata items will be displayed in the AVPlayerViewController UI. - AVMetadataCommonIdentifierTitle - AVMetadataIdentifieriTunesMetadataTrackSubTitle - AVMetadataCommonIdentifierDescription API-Since: 12.2
-
setExternalMetadata
public void setExternalMetadata(@NotNull @NotNull NSArray<? extends AVMetadataItem> value)[@property] externalMetadata Supplements metadata contained in the asset. AVPlayerViewController will publish this metadata as now playing info when AVPlayerViewController.updatesNowPlayingInfoCenter is YES. In addition, some metadata items will be displayed in the AVPlayerViewController UI. - AVMetadataCommonIdentifierTitle - AVMetadataIdentifieriTunesMetadataTrackSubTitle - AVMetadataCommonIdentifierDescription API-Since: 12.2
-
allowedAudioSpatializationFormats
public long allowedAudioSpatializationFormats()
[@property] allowedAudioSpatializationFormats Indicates the source audio channel layouts allowed by the receiver for spatialization. Spatialization uses psychoacoustic methods to create a more immersive audio rendering when the content is played on specialized headphones and speaker arrangements. When an AVPlayerItem's allowedAudioSpatializationFormats property is set to AVAudioSpatializationFormatMonoAndStereo the AVPlayer will attempt to spatialize content tagged with a stereo channel layout, two-channel content with no layout specified as well as mono. It is considered incorrect to render a binaural recording with spatialization. A binaural recording is captured using two carefully placed microphones at each ear where the intent, when played on headphones, is to reproduce a naturally occurring spatial effect. Content tagged with a binaural channel layout will ignore this property value. When an AVPlayerItem's allowedAudioSpatializationFormats property is set to AVAudioSpatializationFormatMultichannel the AVPlayer will attempt to spatialize any decodable multichannel layout. Setting this property to AVAudioSpatializationFormatMonoStereoAndMultichannel indicates that the sender allows the AVPlayer to spatialize any decodable mono, stereo or multichannel layout. This property is not observable. The default value for this property with video content is AVAudioSpatializationFormatMonoStereoAndMultichannel. Otherwise, audio only content default value is AVAudioSpatializationFormatMultichannel. API-Since: 14.0
-
setAllowedAudioSpatializationFormats
public void setAllowedAudioSpatializationFormats(long value)
[@property] allowedAudioSpatializationFormats Indicates the source audio channel layouts allowed by the receiver for spatialization. Spatialization uses psychoacoustic methods to create a more immersive audio rendering when the content is played on specialized headphones and speaker arrangements. When an AVPlayerItem's allowedAudioSpatializationFormats property is set to AVAudioSpatializationFormatMonoAndStereo the AVPlayer will attempt to spatialize content tagged with a stereo channel layout, two-channel content with no layout specified as well as mono. It is considered incorrect to render a binaural recording with spatialization. A binaural recording is captured using two carefully placed microphones at each ear where the intent, when played on headphones, is to reproduce a naturally occurring spatial effect. Content tagged with a binaural channel layout will ignore this property value. When an AVPlayerItem's allowedAudioSpatializationFormats property is set to AVAudioSpatializationFormatMultichannel the AVPlayer will attempt to spatialize any decodable multichannel layout. Setting this property to AVAudioSpatializationFormatMonoStereoAndMultichannel indicates that the sender allows the AVPlayer to spatialize any decodable mono, stereo or multichannel layout. This property is not observable. The default value for this property with video content is AVAudioSpatializationFormatMonoStereoAndMultichannel. Otherwise, audio only content default value is AVAudioSpatializationFormatMultichannel. API-Since: 14.0
-
setStartsOnFirstEligibleVariant
public void setStartsOnFirstEligibleVariant(boolean value)
[@property] startsOnFirstEligibleVariant Directs the player to start playback with the first eligible variant that appears in the stream's master playlist. This property influences AVPlayer's algorithm for selecting which of the eligible variant streams in an HTTP Live Streaming master playlist is selected when playback first begins. In all cases, AVPlayer may switch to other variants during playback. On releases prior to macOS 10.15, iOS 13, tvOS 13 and watchOS 6, AVPlayer starts HLS playback with the first eligible variant in the master playlist. On releases starting with macOS 10.15, iOS 13, tvOS 13 and watchOS 6, AVPlayer starts HLS playback by choosing an initial variant that optimizes the startup experience. On releases starting with macOS 11.0, iOS 14, tvOS 14 and watchOS 7, applications may set this property to YES to request that AVPlayer use the previous behaviour of using the first eligible variant in the master playlist. This would be appropriate, for example, for applications which wish to control initial variant selection by ordering the variants in the master playlist. Note that changing this property may impact stream startup performance and quality. In order to be effective this property must be set before initial variant selection occurs. This property only applies to HTTP Live Streaming assets. The default value of this property is NO. API-Since: 14.0
-
startsOnFirstEligibleVariant
public boolean startsOnFirstEligibleVariant()
[@property] startsOnFirstEligibleVariant Directs the player to start playback with the first eligible variant that appears in the stream's master playlist. This property influences AVPlayer's algorithm for selecting which of the eligible variant streams in an HTTP Live Streaming master playlist is selected when playback first begins. In all cases, AVPlayer may switch to other variants during playback. On releases prior to macOS 10.15, iOS 13, tvOS 13 and watchOS 6, AVPlayer starts HLS playback with the first eligible variant in the master playlist. On releases starting with macOS 10.15, iOS 13, tvOS 13 and watchOS 6, AVPlayer starts HLS playback by choosing an initial variant that optimizes the startup experience. On releases starting with macOS 11.0, iOS 14, tvOS 14 and watchOS 7, applications may set this property to YES to request that AVPlayer use the previous behaviour of using the first eligible variant in the master playlist. This would be appropriate, for example, for applications which wish to control initial variant selection by ordering the variants in the master playlist. Note that changing this property may impact stream startup performance and quality. In order to be effective this property must be set before initial variant selection occurs. This property only applies to HTTP Live Streaming assets. The default value of this property is NO. API-Since: 14.0
-
appliesPerFrameHDRDisplayMetadata
public boolean appliesPerFrameHDRDisplayMetadata()
default is YES API-Since: 14.0
-
setAppliesPerFrameHDRDisplayMetadata
public void setAppliesPerFrameHDRDisplayMetadata(boolean value)
default is YES API-Since: 14.0
-
automaticallyHandlesInterstitialEvents
public boolean automaticallyHandlesInterstitialEvents()
[@property] automaticallyHandlesInterstitialEvents Allows interstitials to be played according to a schedule that's specified by server-side directives. The default value is YES. A value of NO prevents automatic scheduling of future server-side interstitial events. Events specified by an AVPlayerInterstitialEventController override server-side events, regardless of the value of this property. Before macOS 13, iOS 16, tvOS 16, and watchOS 9, this property must be accessed on the main thread/queue. API-Since: 15.0
-
preferredMaximumResolutionForExpensiveNetworks
public CGSize preferredMaximumResolutionForExpensiveNetworks()
[@property] preferredMaximumResolutionForExpensiveNetworks Indicates a preferred upper limit on the resolution of the video to be downloaded that applies only when the download occurs over expensive networks. The default value is CGSizeZero, which indicates that the client enforces no limit on video resolution. Other values indicate a preferred maximum video resolution. This limit applies only when streaming over an expensive network, such as when using a cellular data plan. (See -[NWPath isExpensive]) It only applies to HTTP Live Streaming asset. Note that preferredMaximumResolution still applies unconditionally. If preferredMaximumResolutionForExpensiveNetworks is less restrictive (higher resolution) than preferredMaximumResolution, preferredMaximumResolutionForExpensiveNetworks has no practical effect. API-Since: 15.0
-
preferredPeakBitRateForExpensiveNetworks
public double preferredPeakBitRateForExpensiveNetworks()
[@property] preferredPeakBitRateForExpensiveNetworks Indicates the desired limit of network bandwidth consumption for this item over expensive networks. When preferredPeakBitRateForExpensiveNetworks is set to non-zero, the player will attempt to limit item playback to that bit rate when streaming over an expensive network, such as when using a cellular data plan. (See -[NWPath isExpensive]) If network bandwidth consumption cannot be lowered to meet the preferredPeakBitRateForExpensiveNetworks, it will be reduced as much as possible while continuing to play the item. Note that preferredPeakBitRate still applies unconditionally. If preferredPeakBitRateForExpensiveNetworks is less restrictive (greater) than preferredPeakBitRate, preferredPeakBitRateForExpensiveNetworks has no practical effect. API-Since: 15.0
-
setAutomaticallyHandlesInterstitialEvents
public void setAutomaticallyHandlesInterstitialEvents(boolean value)
[@property] automaticallyHandlesInterstitialEvents Allows interstitials to be played according to a schedule that's specified by server-side directives. The default value is YES. A value of NO prevents automatic scheduling of future server-side interstitial events. Events specified by an AVPlayerInterstitialEventController override server-side events, regardless of the value of this property. Before macOS 13, iOS 16, tvOS 16, and watchOS 9, this property must be accessed on the main thread/queue. API-Since: 15.0
-
setPreferredMaximumResolutionForExpensiveNetworks
public void setPreferredMaximumResolutionForExpensiveNetworks(CGSize value)
[@property] preferredMaximumResolutionForExpensiveNetworks Indicates a preferred upper limit on the resolution of the video to be downloaded that applies only when the download occurs over expensive networks. The default value is CGSizeZero, which indicates that the client enforces no limit on video resolution. Other values indicate a preferred maximum video resolution. This limit applies only when streaming over an expensive network, such as when using a cellular data plan. (See -[NWPath isExpensive]) It only applies to HTTP Live Streaming asset. Note that preferredMaximumResolution still applies unconditionally. If preferredMaximumResolutionForExpensiveNetworks is less restrictive (higher resolution) than preferredMaximumResolution, preferredMaximumResolutionForExpensiveNetworks has no practical effect. API-Since: 15.0
-
setPreferredPeakBitRateForExpensiveNetworks
public void setPreferredPeakBitRateForExpensiveNetworks(double value)
[@property] preferredPeakBitRateForExpensiveNetworks Indicates the desired limit of network bandwidth consumption for this item over expensive networks. When preferredPeakBitRateForExpensiveNetworks is set to non-zero, the player will attempt to limit item playback to that bit rate when streaming over an expensive network, such as when using a cellular data plan. (See -[NWPath isExpensive]) If network bandwidth consumption cannot be lowered to meet the preferredPeakBitRateForExpensiveNetworks, it will be reduced as much as possible while continuing to play the item. Note that preferredPeakBitRate still applies unconditionally. If preferredPeakBitRateForExpensiveNetworks is less restrictive (greater) than preferredPeakBitRate, preferredPeakBitRateForExpensiveNetworks has no practical effect. API-Since: 15.0
-
setVariantPreferences
public void setVariantPreferences(long value)
[@property] variantPreferences Indicates preferences for variant switching. Changing variant preferences during playback may result in a variant switch. The default value is AVVariantPreferenceNone. API-Since: 14.5
-
templatePlayerItem
@Nullable public @Nullable AVPlayerItem templatePlayerItem()
[@property] templatePlayerItem If the item was created automatically according to a template item for looping, for interstitial playback, or for other purposes, indicates the AVPlayerItem that was used as the template. API-Since: 15.0
-
variantPreferences
public long variantPreferences()
[@property] variantPreferences Indicates preferences for variant switching. Changing variant preferences during playback may result in a variant switch. The default value is AVVariantPreferenceNone. API-Since: 14.5
-
interstitialTimeRanges
@NotNull public @NotNull NSArray<? extends AVInterstitialTimeRange> interstitialTimeRanges()
[@property] interstitialTimeRanges An array of time ranges that identifies interstitial content. Each element specifies the time range of the media occupied by the interstitials. An interstitial time range identifies a range of an asset that is collapsed into a single dot on the timeline in the user interface. Interstitial content is typically not related to the video being played (e.g. advertisements). On iOS, interstitials must be defined by the stream, or by using an AVPlayerInterstitialEventController. API-Since: 16.0
-
nowPlayingInfo
@Nullable public @Nullable NSDictionary<java.lang.String,?> nowPlayingInfo()
The current now playing info for the player item. Setting the info to nil will clear it. API-Since: 16.0
-
setNowPlayingInfo
public void setNowPlayingInfo(@Nullable @Nullable NSDictionary<java.lang.String,?> value)The current now playing info for the player item. Setting the info to nil will clear it. API-Since: 16.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-