Packagecom.adobe.mediacore
Classpublic class DefaultSeekManager
InheritanceDefaultSeekManager Inheritance Object
Implements SeekManager

Default media player seek manager. This class provides the following adjustments: - if the desired seek position is LIVE_POINT and the item is live, then no adjustment is made - if there are no ads on the timeline no adjustment is done - if there are ads on the timeline and we seek backwards we adjust the position only if it fails inside and ad break, otherwise no adjustment is done - if there are ads on the timeline and we seek forward we adjust the position only if we skip ad break and the adjustment is made to the nearest ad break past the current time, otherwise no adjustment is done



Public Methods
 MethodDefined By
  
Default constructor.
DefaultSeekManager
  
adjustSeekPosition(position:Number):Number
Adjusts the seek position to match the desired logic.
DefaultSeekManager
Constructor Detail
DefaultSeekManager()Constructor
public function DefaultSeekManager(player:MediaPlayer, item:MediaPlayerItem)

Default constructor.

Parameters
player:MediaPlayer
 
item:MediaPlayerItem
Method Detail
adjustSeekPosition()method
public function adjustSeekPosition(position:Number):Number

Adjusts the seek position to match the desired logic. For instance, when seeking inside an ad break, the seek position could be adjusted to its beginning.

Parameters

position:Number — the desired seek position

Returns
Number — the adjusted seek position