Packagesekati.media
Interfacepublic interface IProgressiveMedia extends flash.events.IEventDispatcher
ImplementorsFLV, MP3

IProgressiveMedia provides a common interface for progressive playable media.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property detail
bufferLengthproperty
bufferLength:Number  [read-only]

Amount of play-ahead buffer, in seconds.

Implementation
    public function get bufferLength():Number
durationproperty 
duration:Number  [read-only]

The total playback duration, in seconds.

Implementation
    public function get duration():Number
isBufferingproperty 
isBuffering:Boolean  [read-only]

Buffering status.

Implementation
    public function get isBuffering():Boolean
isPausedproperty 
isPaused:Boolean  [read-only]

Paused status.

Implementation
    public function get isPaused():Boolean
isPlayingproperty 
isPlaying:Boolean  [read-only]

Playing status.

Implementation
    public function get isPlaying():Boolean
isStoppedproperty 
isStopped:Boolean  [read-only]

Stopped status.

Implementation
    public function get isStopped():Boolean
panproperty 
pan:Number  [read-write]

The media audio pan (0 - 1).

Implementation
    public function get pan():Number
    public function set pan(value:Number):void
percentLoadedproperty 
percentLoaded:Number  [read-only]

The percent loaded (0 - 1).

Implementation
    public function get percentLoaded():Number
percentPlayedproperty 
percentPlayed:Number  [read-only]

The percent played (0 - 1).

Implementation
    public function get percentPlayed():Number
positionproperty 
position:Number  [read-only]

The position of the playhead, in seconds.

Implementation
    public function get position():Number
urlproperty 
url:String  [read-only]

The media url.

Implementation
    public function get url():String
volumeproperty 
volume:Number  [read-write]

The media audio volume (0 - 1).

Implementation
    public function get volume():Number
    public function set volume(value:Number):void
Method detail
destroy()method
public function destroy():void

Stop playback and cleanup.

fastForward()method 
public function fastForward(seconds:Number = 2):void

Fast-Forward playback.

Parameters
seconds:Number (default = 2) — to step forward.
load()method 
public function load(url:String, buffer:uint = 4):void

Load the media and begin playback.

Parameters
url:String — of the media to be loaded.
 
buffer:uint (default = 4) — in seconds.

Throws
— 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.

Parameters
seconds:Number (default = 2) — to step back.
seek()method 
public function seek(time:Number):void

Seek to a playback time.

Parameters
time:Number — in playback to seek to.
seekToPercent()method 
public function seekToPercent(percent:Number):void

Seek to a playback percent (0 - 1).

Parameters
percent:Number — of playback to seek to.
stop()method 
public function stop():void

Stop playback.

togglePause()method 
public function togglePause():void

Pause/Resume playback toggle.