Customize opportunity detectors and content resolvers

An opportunity detector is a component of the PSDK that detects custom tags in a stream and identifies placement opportunities. These placement opportunities are then sent to the content resolver, which customizes the content/ad insertion workflow based on the placement opportunity properties and metadata.

The PSDK includes a default opportunity detector:
  • (SpliceOutPlacementOpportunityDetector), which understands default ad cues
The PSDK also includes various default content resolvers that provide content to be inserted based on the metadata key in the player item:
  • AuditudeResolver for AUDITUDE_METADATA_KEY
  • MetadataResolver for JSON_METADATA_KEY
  • CustomAdMarkersContentResolver for CUSTOM_AD_MARKERS_METADATA_KEY
You can override the default opportunity detectors and content resolvers to customize the advertising workflow in ways such as the following:
  • Add support for custom tag detection
  • Recognize custom tags for ad insertion
  • Create a customized ad provider
  • Black out content