Packagecom.adobe.mediacore.timeline.resolvers
Classpublic class ContentResolver
InheritanceContentResolver Inheritance Object
Subclasses AuditudeResolver, CustomAdResolver, MetadataResolver

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. Also it is responsible for notifying the client about any updates in the resolving process like completions or errors.



Public Properties
 PropertyDefined By
  client : ContentResolverClient
[read-only] Returns the client associated with this content resolver.
ContentResolver
  context : MediaPlayerContext
[read-only] Returns the context associated with this content resolver.
ContentResolver
Public Methods
 MethodDefined By
  
Default constructor.
ContentResolver
  
canResolve(opportunity:Opportunity):Boolean
Checks if the specified opportunity can be resolved by the current resolver.
ContentResolver
  
Callback invoked by the PSDK every time the content resolver needs to be configured or re-configured due to an item change.
ContentResolver
  
resolve(opportunity:Opportunity):void
Resolves the opportunity according to the provided information.
ContentResolver
Protected Methods
 MethodDefined By
  
doCanResolve(opportunity:Opportunity):Boolean
The actual implementation must override this method.
ContentResolver
  
Actual content resolvers should override this method if they need to do some configuration based on the specified media player item.
ContentResolver
  
doResolve(opportunity:Opportunity):void
The actual implementation must override this method.
ContentResolver
Property Detail
clientproperty
client:ContentResolverClient  [read-only]

Returns the client associated with this content resolver. The content resolver client is associated through configure method.


Implementation
    public function get client():ContentResolverClient
contextproperty 
context:MediaPlayerContext  [read-only]

Returns the context associated with this content resolver. The content resolver context is associated through configure method.


Implementation
    public function get context():MediaPlayerContext
Constructor Detail
ContentResolver()Constructor
public function ContentResolver()

Default 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
configure()method 
public final function configure(item:MediaPlayerItem, context:MediaPlayerContext, client:ContentResolverClient):void

Callback invoked by the PSDK every time the content resolver needs to be configured or re-configured due to an item change.

Parameters

item:MediaPlayerItem — Media player item associated with the resolver.
 
context:MediaPlayerContext — Media player context associated with the resolver.
 
client:ContentResolverClient — Content resolver client associated with the resolver.

doCanResolve()method 
protected function doCanResolve(opportunity:Opportunity):Boolean

The actual implementation must override this method.

Parameters

opportunity:Opportunity — the opportunity to be checked.

Returns
Boolean — true if the opportunity can be resolved by this resolver, false otherwise
doConfigure()method 
protected function doConfigure(item:MediaPlayerItem):void

Actual content resolvers should override this method if they need to do some configuration based on the specified media player item.

Parameters

item:MediaPlayerItem — Media player item which is associated with this content resolver.

doResolve()method 
protected function doResolve(opportunity:Opportunity):void

The actual implementation must override this method.

Parameters

opportunity:Opportunity — information needed in resolving process.

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

Resolves the opportunity according to the provided information.

Parameters

opportunity:Opportunity — information needed in resolving process.