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 function DefaultSeekManager(player:MediaPlayer, item:MediaPlayerItem)
Default constructor.
Parameters 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
|
Wed Apr 2 2014, 06:27 PM +03:00