Conforms to NSObject
Declared in PTOpportunityResolver.h

Overview

PTOpportunityResolver protocol describes the methods that are required for a customized opportunity resolver.

Tasks

shouldHandleOpportunity

configWithPlayerItem

process

  • – process:

    Invoked everytime that the player requires the opportunity resolver to process an oportunity. Only if the opportunity resolver returned YES to handle a timed metadata in shouldHandleOpportunity.

    required method

timeout

  • – timeout:

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

Instance Methods

configWithPlayerItem:delegate:

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

- (void)configWithPlayerItem:(PTMediaPlayerItem *)item delegate:(id<PTOpportunityResolverDelegate>)delegate

Discussion

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

Declared In

PTOpportunityResolver.h

process:

Invoked everytime that the player requires the opportunity resolver to process an oportunity. Only if the opportunity resolver returned YES to handle a timed metadata in shouldHandleOpportunity.

- (void)process:(PTTimedMetadata *)timedMetadata

Discussion

Invoked everytime that the player requires the opportunity resolver to process an oportunity. Only if the opportunity resolver returned YES to handle a timed metadata in shouldHandleOpportunity.

Declared In

PTOpportunityResolver.h

shouldHandleOpportunity:

Opportunity resolver returns YES/NO if it should handle the following metadata.

- (BOOL)shouldHandleOpportunity:(PTTimedMetadata *)timedMetadata

Discussion

Opportunity resolver returns YES/NO if it should handle the following metadata.

Declared In

PTOpportunityResolver.h

timeout:

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

- (void)timeout:(PTTimedMetadata *)timedMetadata

Discussion

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

Declared In

PTOpportunityResolver.h