The SeekBar class creates a visual representation
of the media's loading progress and current time position
versus total time position. The seek bar can also be used
to seek to a position within the video (if the seekEnabled
property is set to true).
Set seekEnabled to true to allow seeking and scrubbing
along the seekbar. Or set to false to disable seeking for
progressive video downloads with seeking issues.
Implementation public function get seekEnabled():Boolean public function set seekEnabled(value:Boolean):void
track
property
public var track:Sprite
Constructor Detail
SeekBar
()
Constructor
public function SeekBar()
Method Detail
addedToStageHandler
()
method
protected function addedToStageHandler(event:Event):void
Parameters
event:Event
init
()
method
override public function init():void
Called when the mediaPlayer reference is set. Use this method to
initialize the control with the OSMF media display.
onDragStart
()
method
protected function onDragStart(event:MouseEvent):void
Parameters
event:MouseEvent
onDragStop
()
method
protected function onDragStop(event:MouseEvent):void
Parameters
event:MouseEvent
onEnterFrame
()
method
protected function onEnterFrame(event:Event):void
Parameters
event:Event
onTrackClick
()
method
protected function onTrackClick(event:MouseEvent):void
Parameters
event:MouseEvent
setProgress
()
method
public function setProgress(bl:Number, bt:Number):void
Updates the loading progress display on the seek bar.
Parameters
bl:Number — Number representing bytes loaded.
bt:Number — Number representing bytes total.
setSeekBar
()
method
public function setSeekBar(ct:Number, tt:Number):void
Updates the seek bar position.
Parameters
ct:Number — Number representing the current time.
tt:Number — Number representing the total time.
setSize
()
method
public function setSize(w:Number, h:Number):void
Sets the size of the seek bar. Currently only the
width value is taken into account.