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

configWithPlayerItem

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 *)opportunities

Discussion

Invoked if the PSDK decides that the PTContentResolver is taking too much time to answer back for this timed metadata.

Declared In

PTContentResolver.h

configWithPlayerItem: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>)delegate

Discussion

Invoked by the PSDK every time the content resolver needs to be initialized due to a item or delegate change.

Declared In

PTContentResolver.h

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)

- (void)process:(NSArray *)opportunities

Discussion

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.h

shouldHandleOpportunity:

Content resolver returns YES/NO if it should handle the following placement opportunity.

- (BOOL)shouldHandleOpportunity:(PTPlacementOpportunity *)opportunity

Discussion

Content resolver returns YES/NO if it should handle the following placement opportunity.

Declared In

PTContentResolver.h