Packagecom.adobe.mediacore.timeline
Classpublic class ContentResolver
InheritanceContentResolver Inheritance flash.events.EventDispatcher
Subclasses AuditudeAdResolver, MetadataAdResolver

Base class for various content resolvers. The most obvious content resolver class is ad resolver class responsible for obtaining the ad breaks which will be placed on the timeline. Another content resolver class is blackout resolver which is responsible for obtaining the alternate media stream to be played during a blackout. A resolver "resolves" an opportunity to a list of timeline operations.



Public Methods
 MethodDefined By
  
Constructor.
ContentResolver
  
canResolve(opportunity:Opportunity):Boolean
Checks if the specified opportunity can be resolved by the current resolver.
ContentResolver
  
cleanup():void
Performs a cleanup of the content resolver, cleaning any configurations performed in config
ContentResolver
  
config(config:Configuration):void
Configures the ContentResolver with any information needed from the MediaPlayerItem
ContentResolver
  
resolve(opportunity:Opportunity):void
Resolves the ads according to the provided information
ContentResolver
Events
 Event Summary Defined By
  Dispatched when the content resolution has completed successfully.ContentResolver
  Dispatched when an error has occurred during resolving process.ContentResolver
Constructor Detail
ContentResolver()Constructor
public function ContentResolver()

Constructor.

Method Detail
canResolve()method
public final function canResolve(opportunity:Opportunity):Boolean

Checks if the specified opportunity can be resolved by the current resolver.

Parameters

opportunity:Opportunity — opportunity to be checked

Returns
Boolean — true if the opportunity can be resolved by this resolver, false otherwise
cleanup()method 
public final function cleanup():void

Performs a cleanup of the content resolver, cleaning any configurations performed in config

config()method 
public final function config(config:Configuration):void

Configures the ContentResolver with any information needed from the MediaPlayerItem

Parameters

config:Configuration — - the MediaPlayerItem currently in use

resolve()method 
public final function resolve(opportunity:Opportunity):void

Resolves the ads according to the provided information

Parameters

opportunity:Opportunity — information needed in resolving process.

Event Detail
resolvingCompleted Event
Event Object Type: com.adobe.mediacore.events.ContentResolverEvent

Dispatched when the content resolution has completed successfully.

resolvingFailed Event  
Event Object Type: com.adobe.mediacore.events.ContentErrorEvent

Dispatched when an error has occurred during resolving process.