Package | sekati.media |
Interface | public interface IProgressiveMedia extends flash.events.IEventDispatcher |
Implementors | FLV, MP3 |
Property | Defined by | ||
---|---|---|---|
bufferLength : Number [read-only]
Amount of play-ahead buffer, in seconds.
| IProgressiveMedia | ||
duration : Number [read-only]
The total playback duration, in seconds.
| IProgressiveMedia | ||
isBuffering : Boolean [read-only]
Buffering status.
| IProgressiveMedia | ||
isPaused : Boolean [read-only]
Paused status.
| IProgressiveMedia | ||
isPlaying : Boolean [read-only]
Playing status.
| IProgressiveMedia | ||
isStopped : Boolean [read-only]
Stopped status.
| IProgressiveMedia | ||
pan : Number
The media audio pan (0 - 1).
| IProgressiveMedia | ||
percentLoaded : Number [read-only]
The percent loaded (0 - 1).
| IProgressiveMedia | ||
percentPlayed : Number [read-only]
The percent played (0 - 1).
| IProgressiveMedia | ||
position : Number [read-only]
The position of the playhead, in seconds.
| IProgressiveMedia | ||
url : String [read-only] The media url.
| IProgressiveMedia | ||
volume : Number
The media audio volume (0 - 1).
| IProgressiveMedia |
Method | Defined by | ||
---|---|---|---|
destroy():void
Stop playback and cleanup.
| IProgressiveMedia | ||
fastForward(seconds:Number = 2):void
Fast-Forward playback.
| IProgressiveMedia | ||
load(url:String, buffer:uint = 4):void
Load the media and begin playback.
| IProgressiveMedia | ||
pause():void
Pause playback.
| IProgressiveMedia | ||
play():void
Start playback.
| IProgressiveMedia | ||
resume():void
Resume playback.
| IProgressiveMedia | ||
rewind(seconds:Number = 2):void
Rewind playback.
| IProgressiveMedia | ||
seek(time:Number):void
Seek to a playback time.
| IProgressiveMedia | ||
seekToPercent(percent:Number):void
Seek to a playback percent (0 - 1).
| IProgressiveMedia | ||
stop():void
Stop playback.
| IProgressiveMedia | ||
togglePause():void
Pause/Resume playback toggle.
| IProgressiveMedia |
bufferLength | property |
bufferLength:Number
[read-only]Amount of play-ahead buffer, in seconds.
Implementation public function get bufferLength():Number
duration | property |
duration:Number
[read-only]The total playback duration, in seconds.
Implementation public function get duration():Number
isBuffering | property |
isBuffering:Boolean
[read-only]Buffering status.
Implementation public function get isBuffering():Boolean
isPaused | property |
isPaused:Boolean
[read-only]Paused status.
Implementation public function get isPaused():Boolean
isPlaying | property |
isPlaying:Boolean
[read-only]Playing status.
Implementation public function get isPlaying():Boolean
isStopped | property |
isStopped:Boolean
[read-only]Stopped status.
Implementation public function get isStopped():Boolean
pan | property |
pan:Number
[read-write]The media audio pan (0 - 1).
Implementation public function get pan():Number
public function set pan(value:Number):void
percentLoaded | property |
percentLoaded:Number
[read-only]The percent loaded (0 - 1).
Implementation public function get percentLoaded():Number
percentPlayed | property |
percentPlayed:Number
[read-only]The percent played (0 - 1).
Implementation public function get percentPlayed():Number
position | property |
position:Number
[read-only]The position of the playhead, in seconds.
Implementation public function get position():Number
url | property |
url:String
[read-only]The media url.
Implementation public function get url():String
volume | property |
volume:Number
[read-write]The media audio volume (0 - 1).
Implementation public function get volume():Number
public function set volume(value:Number):void
destroy | () | method |
public function destroy():void
Stop playback and cleanup.
fastForward | () | method |
public function fastForward(seconds:Number = 2):void
Fast-Forward playback.
Parametersseconds:Number (default = 2 ) — to step forward.
|
load | () | method |
public function load(url:String, buffer:uint = 4):void
Load the media and begin playback.
Parametersurl:String — of the media to be loaded.
|
|
buffer:uint (default = 4 ) — in seconds.
|
— ArgumentError if url is not proper file type.
|
pause | () | method |
public function pause():void
Pause playback.
play | () | method |
public function play():void
Start playback.
resume | () | method |
public function resume():void
Resume playback.
rewind | () | method |
public function rewind(seconds:Number = 2):void
Rewind playback.
Parametersseconds:Number (default = 2 ) — to step back.
|
seek | () | method |
public function seek(time:Number):void
Seek to a playback time.
Parameterstime:Number — in playback to seek to.
|
seekToPercent | () | method |
public function seekToPercent(percent:Number):void
Seek to a playback percent (0 - 1).
Parameterspercent:Number — of playback to seek to.
|
stop | () | method |
public function stop():void
Stop playback.
togglePause | () | method |
public function togglePause():void
Pause/Resume playback toggle.