-
1. Re: Strobe seek on start
radu_k Jun 11, 2014 12:53 PM (in response to radu_k)I have this, and it does seek to the right place, but then the seek bar gets all messed up (it still shows as being at the beginning), but it plays content form the seeked time. Trying to use the seekbar after that gets erratic results...
public function seek(time:Number):void{
player.addEventListener
( MediaPlayerStateChangeEvent.MEDIA_PLAYER_STATE_CHANGE
, seekOnce
);
function seekOnce(event:MediaPlayerStateChangeEvent):void
{
if ( event.state == MediaPlayerState.READY )
{
// Make sure this event is processed only once:
player.removeEventListener(event.type, arguments.callee);
player.seek(time);
}
}
}
