Packagegs.display.flv
Classpublic class FLVPlaybackQManager
InheritanceFLVPlaybackQManager Inheritance flash.events.EventDispatcher

The FLVPlaybackQManager uses an instance of an FLVPlayback to play videos in a queue. It uses an FLVPlayback for the VideoPlayer stack functionality.

Examples are in the guttershark repository.



Public Properties
 PropertyDefined by
  continueWhenTimeLeft : Number = 3
The time in seconds remaining in the currently playing clip before triggering the next clip to play.
FLVPlaybackQManager
  crossfadeDuration : Number = 1
The crossfade duration between two clips.
FLVPlaybackQManager
  isRTMP : Boolean
[read-only] Indicates whether or not the currently playing clip is RTMP.
FLVPlaybackQManager
  player : FLVPlayback
The FLVPlayback instance used to play through the queue.
FLVPlaybackQManager
  queue : Array
[write-only] Set the queue of file's to play through.
FLVPlaybackQManager
  source : String
[read-only] The source URI for the currently playing video.
FLVPlaybackQManager
  streamAttemptTimeBeforeFail : Number
[write-only] Set the time (in seconds) allowed for a stream attempt, before it is considered a failed attempt.
FLVPlaybackQManager
Public Methods
 MethodDefined by
  
Constructor for FLVPlaybackQManager instances.
FLVPlaybackQManager
  
pause():void
Pause the queue.
FLVPlaybackQManager
  
playNext():void
Play the next video in the queue.
FLVPlaybackQManager
  
playNow(source:String):void
Interupt the queue and play the specified file immediately.
FLVPlaybackQManager
  
reset():void
Resets everything internally.
FLVPlaybackQManager
  
start():void
Start playing the queue.
FLVPlaybackQManager
  
stop():void
Stop the queue.
FLVPlaybackQManager
Property detail
continueWhenTimeLeftproperty
public var continueWhenTimeLeft:Number = 3

The time in seconds remaining in the currently playing clip before triggering the next clip to play.

crossfadeDurationproperty 
public var crossfadeDuration:Number = 1

The crossfade duration between two clips.

isRTMPproperty 
isRTMP:Boolean  [read-only]

Indicates whether or not the currently playing clip is RTMP.

Implementation
    public function get isRTMP():Boolean
playerproperty 
player:FLVPlayback  [read-write]

The FLVPlayback instance used to play through the queue.

Implementation
    public function get player():FLVPlayback
    public function set player(value:FLVPlayback):void
queueproperty 
queue:Array  [write-only]

Set the queue of file's to play through. You can use relative, http, and rtmp locations.

Implementation
    public function set queue(value:Array):void
sourceproperty 
source:String  [read-only]

The source URI for the currently playing video.

Implementation
    public function get source():String
streamAttemptTimeBeforeFailproperty 
streamAttemptTimeBeforeFail:Number  [write-only]

Set the time (in seconds) allowed for a stream attempt, before it is considered a failed attempt. If a stream does not play before the timeout, the stream is closed and the next video is played.

Implementation
    public function set streamAttemptTimeBeforeFail(value:Number):void
Constructor detail
FLVPlaybackQManager()constructor
public function FLVPlaybackQManager()

Constructor for FLVPlaybackQManager instances.

Method detail
pause()method
public function pause():void

Pause the queue.

playNext()method 
public function playNext():void

Play the next video in the queue.

playNow()method 
public function playNow(source:String):void

Interupt the queue and play the specified file immediately.

Parameters
source:String — The video source path.
reset()method 
public function reset():void

Resets everything internally. Clears the queue.

start()method 
public function start():void

Start playing the queue.

stop()method 
public function stop():void

Stop the queue.