Packagecom.apdevblog.ui.video
Classpublic class ApdevVideoControls
InheritanceApdevVideoControls Inheritance flash.display.Sprite

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

VideoControls for ApdevVideoPlayer.

Container with all controls (play/pause, volume, ...) for the videoplayer.

See also

ApdevVideoPlayer


Public Properties
 PropertyDefined By
  meta : VideoMetadataVo
[write-only] video's current metadata (visual representation).
ApdevVideoControls
  state : String
[write-only] videocontrol's current state (visual representation).
ApdevVideoControls
  volume : Number
[write-only] video's current volume (visual representation).
ApdevVideoControls
  width : Number
[override] videocontrol's current width.
ApdevVideoControls
Public Methods
 MethodDefined By
  
creates a new container for the videoplayer's controls.
ApdevVideoControls
  
updateDisplayState(displayState:String):void
adjusts the controls when the current displaystate changes (
ApdevVideoControls
  
updateLoading(fraction:Number):void
updates the visual loading status.
ApdevVideoControls
  
updatePlaying(fraction:Number):void
adjusts the controls when the video's playing state changed.
ApdevVideoControls
Events
 Event Summary Defined By
  Dispatched when the user pressed fullscreen button.ApdevVideoControls
  Dispatched when the user pressed play button.ApdevVideoControls
Property Detail
metaproperty
meta:VideoMetadataVo  [write-only]

video's current metadata (visual representation).


Implementation
    public function set meta(value:VideoMetadataVo):void
stateproperty 
state:String  [write-only]

videocontrol's current state (visual representation).


Implementation
    public function set state(value:String):void
volumeproperty 
volume:Number  [write-only]

video's current volume (visual representation).


Implementation
    public function set volume(value:Number):void
widthproperty 
width:Number[override]

videocontrol's current width.


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

creates a new container for the videoplayer's controls.

Parameters
width:int — width of the whole container
 
style:ApdevVideoPlayerDefaultStyle
Method Detail
updateDisplayState()method
public function updateDisplayState(displayState:String):void

adjusts the controls when the current displaystate changes (

Parameters

displayState:String — stage's displaystate

See also

StageDisplayState).
updateLoading()method 
public function updateLoading(fraction:Number):void

updates the visual loading status.

Parameters

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

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

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

Parameters

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

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

Dispatched when the user pressed fullscreen button.

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

Dispatched when the user pressed play button.