Packagecom.apdevblog.ui.video.controls
Classpublic class VideoStatusBar
InheritanceVideoStatusBar Inheritance flash.display.Sprite

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9

ApdevVideoplayer's statusbar.

See also

ApdevVideoPlayer
ApdevVideoControls


Public Properties
 PropertyDefined By
  width : Number
[override] statusbar's width.
VideoStatusBar
Public Methods
 MethodDefined By
  
creates status bar.
VideoStatusBar
  
updateLoading(fraction:Number):void
updates the visual loading status.
VideoStatusBar
  
receives video's new meta information.
VideoStatusBar
  
updatePlaying(fraction:Number):void
adjusts the bar when the video's playing state changed.
VideoStatusBar
Events
 Event Summary Defined By
  Dispatched when the user scrubs the statusbar.VideoStatusBar
  Dispatched when the user pressed and released statusbar.VideoStatusBar
  Dispatched when the user pressed statusbar.VideoStatusBar
Property Detail
widthproperty
width:Number[override]

statusbar's width.


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
VideoStatusBar()Constructor
public function VideoStatusBar(width:int, style:ApdevVideoPlayerDefaultStyle)

creates status bar.

Parameters
width:int — bar's initial width
 
style:ApdevVideoPlayerDefaultStyle
Method Detail
updateLoading()method
public function updateLoading(fraction:Number):void

updates the visual loading status.

Parameters

fraction:Number — percents of the video that are already loaded

updateMeta()method 
public function updateMeta(meta:VideoMetadataVo):void

receives video's new meta information.

Parameters

meta:VideoMetadataVo — video's metadata

updatePlaying()method 
public function updatePlaying(fraction:Number):void

adjusts the bar when the video's playing state changed.

Parameters

fraction:Number — percents of the video that are already played

Event Detail
scrub Event
Event Object Type: com.apdevblog.events.video.VideoControlsEvent
VideoControlsEvent.type property = com.apdevblog.events.video.VideoControlsEvent

Dispatched when the user scrubs the statusbar.

seek Event  
Event Object Type: com.apdevblog.events.video.VideoControlsEvent
VideoControlsEvent.type property = com.apdevblog.events.video.VideoControlsEvent

Dispatched when the user pressed and released statusbar.

togglePlayPause Event  
Event Object Type: com.apdevblog.events.video.VideoControlsEvent
VideoControlsEvent.type property = com.apdevblog.events.video.VideoControlsEvent

Dispatched when the user pressed statusbar.