Packagenet.guttershark.video
Classpublic class FLVPlaybackQueueManager
InheritanceFLVPlaybackQueueManager Inheritance flash.events.EventDispatcher

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


Example
Setup example:
 
  myFLVPlayback.align = VideoAlign.BOTTOM_LEFT;
  myFLVPlayback.scaleMode = VideoScaleMode.NO_SCALE;
  myFLVPlayback.ncMgr.timeout = 10000;
  myFLVPlayback.playheadUpdateInterval = 1300;
  queuePlaybackManager = new FLVPlaybackQueueManager();
  queuePlaybackManager.player = myFLVPlayback;
  var queue:Array = [
    "assets/flv/6000_EGG.flv",
    "assets/flv/6001_EGG.flv",
    "assets/flv/6002_EGG.flv",
    "rtmp://cp44952.edgefcs.net/ondemand/streamingVideos/high/2035_RES.flv"
  ];
  queuePlaybackManager.queue = queue;
  queuePlaybackManager.streamAttemptTimeBeforeFail = 10;
  queuePlaybackManager.start();
  



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

Constructor for FLVPlaybackQueueManager instances.

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

Pause the queue.

Parameters
val:Boolean
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 file specified 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.