public class AVPlayerInterstitialEvent extends NSObject
An AVPlayerInterstitialEvent provides instructions for temporarily suspending the playback of primary content in order to play alternative interstitial content instead, resuming playback of the primary content when playback of the interstitial content is complete or is canceled.
The primary content is specified as an instance of AVPlayerItem, designated as the primary item of the interstitial event.
The timing of interstitial playback is specified as a date within the date range of the primary item. Interstitial events are currently possible only for items with an intrinsic mapping from their timeline to real-time dates.
The alternative interstitial content is specified as an array of one or more AVPlayerItems that will be used as templates for the creation of items for interstitial playback. In other words, these template items are not the actual items that will be played during interstitial playback; instead they are used to generate the items that are to be played, with property values that match the configuration of your template items.
If you wish to observe the scheduling and progress of interstitial events, use an AVPlayerInterstitialEventMonitor. If you wish to specify your own schedule of interstitial events, use an AVPlayerInterstitialEventController.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
AVPlayerInterstitialEvent(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static AVPlayerInterstitialEvent |
alloc() |
static AVPlayerInterstitialEvent |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
NSDate |
date()
[@property] date
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static long |
hash_static() |
java.lang.String |
identifier()
[@property] identifier
|
AVPlayerInterstitialEvent |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static AVPlayerInterstitialEvent |
interstitialEventWithPrimaryItemIdentifierDateTemplateItemsRestrictionsResumptionOffsetPlayoutLimitUserDefinedAttributes(AVPlayerItem primaryItem,
java.lang.String identifier,
NSDate date,
NSArray<? extends AVPlayerItem> templateItems,
long restrictions,
CMTime resumptionOffset,
CMTime playoutLimit,
NSDictionary<?,?> userDefinedAttributes)
interstitialEventWithPrimaryItem:date:templateItems:restrictions:resumptionOffset:
|
static AVPlayerInterstitialEvent |
interstitialEventWithPrimaryItemIdentifierTimeTemplateItemsRestrictionsResumptionOffsetPlayoutLimitUserDefinedAttributes(AVPlayerItem primaryItem,
java.lang.String identifier,
CMTime time,
NSArray<? extends AVPlayerItem> templateItems,
long restrictions,
CMTime resumptionOffset,
CMTime playoutLimit,
NSDictionary<?,?> userDefinedAttributes)
interstitialEventWithPrimaryItem:time:templateItems:restrictions:resumptionOffset:
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static AVPlayerInterstitialEvent |
new_objc() |
CMTime |
playoutLimit()
[@property] playoutLimit
|
AVPlayerItem |
primaryItem()
[@property] primaryItem
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
long |
restrictions()
[@property] restrictions
|
CMTime |
resumptionOffset()
[@property] resumptionOffset
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
NSArray<? extends AVPlayerItem> |
templateItems()
[@property] templateItems
|
CMTime |
time()
[@property] time
|
NSDictionary<?,?> |
userDefinedAttributes()
[@property] userDefinedAttributes
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected AVPlayerInterstitialEvent(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static AVPlayerInterstitialEvent alloc()
public static AVPlayerInterstitialEvent allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public NSDate date()
The date within the date range of the primary item at which playback of the primary content should be temporarily suspended and the interstitial items played.
Will have a value of nil if the event was initialized with a time instead of a date.
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public java.lang.String identifier()
An external identifier for the event.
If an event is set on an AVPlayerInterstitialEventController that already has an event with the same identifier, the old event will be replaced by the new one.
public AVPlayerInterstitialEvent init()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static AVPlayerInterstitialEvent interstitialEventWithPrimaryItemIdentifierDateTemplateItemsRestrictionsResumptionOffsetPlayoutLimitUserDefinedAttributes(AVPlayerItem primaryItem, java.lang.String identifier, NSDate date, NSArray<? extends AVPlayerItem> templateItems, long restrictions, CMTime resumptionOffset, CMTime playoutLimit, NSDictionary<?,?> userDefinedAttributes)
Returns an instance of AVPlayerInterstitialEvent for use in scheduling interstitial playback.
primaryItem - An AVPlayerItem representing the primary content during the playback of which the interstitial event should occur. The primaryItem must have an AVAsset that provides an intrinsic mapping from its timeline to real-time dates.identifier - An external identifier for the event.date - The date within the date range of the primary item at which playback of the primary content should be temporarily suspended and the interstitial items played.templateItems - An array of AVPlayerItems with configurations that will be reproduced for the playback of interstitial content.restrictions - Indicates restrictions on the use of end user playback controls that are imposed by the event.resumptionOffset - Specifies the offset in time at which playback of the primary item should resume after interstitial playback has finished. Definite numeric values are supported. The value kCMTimeIndefinite can also be used, in order to specify that the effective resumption time offset should accord with the wallclock time elapsed during interstitial playback.playoutLimit - Specifies the offset from the beginning of the interstitial at which interstitial playback should end, if the interstitial asset(s) are longer. Pass a positive numeric value, or kCMTimeInvalid to indicate no playout limit.userDefinedAttributes - Storage for attributes defined by the client or the content vendor. Attribute names should begin with X- for uniformity with server insertion.public static AVPlayerInterstitialEvent interstitialEventWithPrimaryItemIdentifierTimeTemplateItemsRestrictionsResumptionOffsetPlayoutLimitUserDefinedAttributes(AVPlayerItem primaryItem, java.lang.String identifier, CMTime time, NSArray<? extends AVPlayerItem> templateItems, long restrictions, CMTime resumptionOffset, CMTime playoutLimit, NSDictionary<?,?> userDefinedAttributes)
Returns an instance of AVPlayerInterstitialEvent for use in scheduling interstitial playback.
primaryItem - An AVPlayerItem representing the primary content during the playback of which the interstitial event should occur. The primaryItem must have an AVAsset that provides an intrinsic mapping from its timeline to real-time dates.identifier - An external identifier for the event.time - The time within the duration of the primary item at which playback of the primary content should be temporarily suspended and the interstitial items played.templateItems - An array of AVPlayerItems with configurations that will be reproduced for the playback of interstitial content.restrictions - Indicates restrictions on the use of end user playback controls that are imposed by the event.resumptionOffset - Specifies the offset in time at which playback of the primary item should resume after interstitial playback has finished. Definite numeric values are supported. The value kCMTimeIndefinite can also be used, in order to specify that the effective resumption time offset should accord with the wallclock time elapsed during interstitial playback.playoutLimit - Specifies the offset from the beginning of the interstitial at which interstitial playback should end, if the interstitial asset(s) are longer. Pass a positive numeric value, or kCMTimeInvalid to indicate no playout limit.userDefinedAttributes - Storage for attributes defined by the client or the content vendor. Attribute names should begin with X- for uniformity with server insertion.public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static AVPlayerInterstitialEvent new_objc()
public CMTime playoutLimit()
Specifies the offset in time at which playback of the interstitial event should end.
Can be any positive numeric value, or invalid. The default value is kCMTimeInvalid, which means there is no limit.
public AVPlayerItem primaryItem()
An AVPlayerItem representing the primary content during the playback of which the interstitial event should occur. The primaryItem must have an AVAsset that provides an intrinsic mapping from its timeline to real-time dates.
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public long restrictions()
Indicates restrictions on the use of end user playback controls that are imposed by the event.
public CMTime resumptionOffset()
Specifies the offset in time at which playback of the primary item should resume after interstitial playback has finished.
Definite numeric values are supported. The value kCMTimeIndefinite can also be used, in order to specify that the effective resumption time offset should accord with the wallclock time elapsed during interstitial playback; this value is typically suitable for live broadcasts. The default value is kCMTimeZero.
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public NSArray<? extends AVPlayerItem> templateItems()
An array of AVPlayerItems with configurations that will be reproduced for the playback of interstitial content.
public CMTime time()
The time within the duration of the primary item at which playback of the primary content should be temporarily suspended and the interstitial items played.
Will have a value equal to kCMTimeInvalid if the event was initialized with a date instead of a time.
public NSDictionary<?,?> userDefinedAttributes()
Attributes of the event defined by the content vendor or the client.
Dictionary keys are attribute names. Dictionary values are attribute values.
public static long version_static()