Package | com.apdevblog.ui.video |
Class | public class ApdevVideoControls |
Inheritance | ApdevVideoControls flash.display.Sprite |
Language Version : | ActionScript 3.0 |
Runtime Versions : | AIR 1.0, Flash Player 9 |
Container with all controls (play/pause, volume, ...) for the videoplayer.
See also
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
ApdevVideoControls(width:int, style:ApdevVideoPlayerDefaultStyle)
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 |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the user pressed fullscreen button. | ApdevVideoControls | |||
Dispatched when the user pressed play button. | ApdevVideoControls |
meta | property |
meta:VideoMetadataVo
[write-only] video's current metadata (visual representation).
public function set meta(value:VideoMetadataVo):void
state | property |
state:String
[write-only] videocontrol's current state (visual representation).
public function set state(value:String):void
volume | property |
volume:Number
[write-only] video's current volume (visual representation).
public function set volume(value:Number):void
width | property |
width:Number
[override] videocontrol's current width.
public function get width():Number
public function set width(value:Number):void
ApdevVideoControls | () | Constructor |
public function ApdevVideoControls(width:int, style:ApdevVideoPlayerDefaultStyle)
creates a new container for the videoplayer's controls.
Parameterswidth:int — width of the whole container
| |
style:ApdevVideoPlayerDefaultStyle |
updateDisplayState | () | method |
public function updateDisplayState(displayState:String):void
adjusts the controls when the current displaystate changes (
Parameters
displayState:String — stage's displaystate
|
See also
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
|
toggleFullscreen | Event |
com.apdevblog.events.video.VideoControlsEvent
com.apdevblog.events.video.VideoControlsEvent
Dispatched when the user pressed fullscreen button.
togglePlayPause | Event |
com.apdevblog.events.video.VideoControlsEvent
com.apdevblog.events.video.VideoControlsEvent
Dispatched when the user pressed play button.