PTContentResolver Class Reference
| Inherits from | NSObject |
| Conforms to | PTContentResolver |
| Declared in | PTContentResolver.h |
Overview
PTContentResolver class should be used to extend the functionality of a basic content resolver. Custom content resolver should override the following methods: - (BOOL)shouldHandleOpportunity:(PTPlacementOpportunity )opportunity; - (void)process:(NSArray )opportunities;
Tasks
shouldHandleOpportunity
-
– shouldHandleOpportunity:Content resolver returns YES/NO if it should handle the following placement opportunity.
configWithPlayerItem
-
– configWithPlayerItem:delegate:Invoked by the PSDK every time the content resolver needs to be initialized due to a item or delegate change.
process
-
– process:Invoked everytime that the player requires the content resolver to process a set of placement opportunities. Only if the content resolver returned YES to handle a timed metadata in shouldHandleOpportunity. The content resolver MUST call the PTContentResolverDelegate methods to its delegate accordingly (didStartResolvingContentWithOpportunities, didFinishResolvingContentWithOpportunities)
timeout
-
– cancel:Invoked if the PSDK decides that the PTContentResolver is taking too much time to answer back for this timed metadata.
Instance Methods
cancel:
Invoked if the PSDK decides that the PTContentResolver is taking too much time to answer back for this timed metadata.
- (void)cancel:(NSArray *)opportunitiesDiscussion
Invoked if the PSDK decides that the PTContentResolver is taking too much time to answer back for this timed metadata.
Declared In
PTContentResolver.hconfigWithPlayerItem:delegate:
Invoked by the PSDK every time the content resolver needs to be initialized due to a item or delegate change.
- (void)configWithPlayerItem:(PTMediaPlayerItem *)item delegate:(id<PTContentResolverDelegate>)delegateDiscussion
Invoked by the PSDK every time the content resolver needs to be initialized due to a item or delegate change.
Declared In
PTContentResolver.hprocess:
Invoked everytime that the player requires the content resolver to process a set of placement opportunities. Only if the content resolver returned YES to handle a timed metadata in shouldHandleOpportunity. The content resolver MUST call the PTContentResolverDelegate methods to its delegate accordingly (didStartResolvingContentWithOpportunities, didFinishResolvingContentWithOpportunities)
- (void)process:(NSArray *)opportunitiesDiscussion
Invoked everytime that the player requires the content resolver to process a set of placement opportunities. Only if the content resolver returned YES to handle a timed metadata in shouldHandleOpportunity. The content resolver MUST call the PTContentResolverDelegate methods to its delegate accordingly (didStartResolvingContentWithOpportunities, didFinishResolvingContentWithOpportunities)
Declared In
PTContentResolver.hshouldHandleOpportunity:
Content resolver returns YES/NO if it should handle the following placement opportunity.
- (BOOL)shouldHandleOpportunity:(PTPlacementOpportunity *)opportunityDiscussion
Content resolver returns YES/NO if it should handle the following placement opportunity.
Declared In
PTContentResolver.h