Package | org.flowplayer.model |
Class | public class Playlist |
Inheritance | Playlist ![]() ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | childClips : Array | ClipEventSupport | |
![]() | clips : Array | ClipEventSupport | |
commonClip : Clip
[read-only]
| Playlist | ||
current : Clip | Playlist | ||
currentIndex : Number [read-only]
| Playlist | ||
currentPreroll : Clip
[read-only]
| Playlist | ||
length : Number [read-only]
| Playlist | ||
nextClip : Clip
[read-only]
| Playlist | ||
previousClip : Clip
[read-only]
| Playlist |
Method | Defined by | ||
---|---|---|---|
Playlist | |||
Adds a new clip into the playlist.
| Playlist | ||
![]() |
dispatch(eventType:ClipEventType, info:Object = null, info2:Object = null, info3:Object = null):void
| ClipEventDispatcher | |
![]() |
dispatchBeforeEvent(event:AbstractEvent):Boolean
| ClipEventDispatcher | |
![]() |
dispatchError(error:ClipError, info:Object = null):void
| ClipEventDispatcher | |
![]() |
dispatchEvent(event:ClipEvent):void
| ClipEventDispatcher | |
Gets the clip with the specified index.
| Playlist | ||
hasNext(skipPreAndPostRolls:Boolean = true):Boolean
| Playlist | ||
hasPrevious(skipPreAndPostRolls:Boolean = true):Boolean
| Playlist | ||
hasType(type:ClipType):Boolean
Does this playlist have a clip with the specified type?
| Playlist | ||
Playlist | |||
Playlist | |||
![]() |
onAll(listener:Function, clipFilter:Function = null):void
| ClipEventDispatcher | |
![]() |
onBeforeAll(listener:Function, clipFilter:Function = null):void
| ClipEventDispatcher | |
![]() |
onBeforeBegin(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onBeforeFinish(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onBeforePause(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onBeforeResume(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onBeforeSeek(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onBeforeStop(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onBegin(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onBufferEmpty(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onBufferFull(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onBufferStop(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onClipAdd(listener:Function, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onConnect(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onConnectionEvent(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onCuepoint(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onError(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onFinish(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onLastSecond(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onMetaData(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onNetStreamEvent(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onPause(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onPlaylistReplace(listener:Function, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onResume(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onSeek(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onStart(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
Adds a listener for the start event.
| ClipEventDispatcher | |
![]() |
onStop(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
![]() |
onUpdate(listener:Function, clipFilter:Function = null, addToFront:Boolean = false):void
| ClipEventDispatcher | |
Playlist | |||
removeChildClip(clip:Clip):void
Removes the specified child clip.
| Playlist | ||
![]() |
removeListener(event:EventType, listener:Function, beforePhase:Boolean = false):void
| ClipEventSupport | |
replaceClips(clip:Clip):void
Discards all clips and adds the specified clip to the list.
| Playlist | ||
replaceClips2(clips:Array):void
Discards all clips and addes the specified clips to the list.
| Playlist | ||
setInStreamClip(clip:Clip):void
| Playlist | ||
Playlist | |||
toString():String
| Playlist | ||
![]() |
typeFilter(type:ClipType):Function
[static]
| ClipEventSupport |
commonClip | property |
current | property |
current:Clip
[read-write]Implementation
public function get current():Clip
public function set current(value:Clip):void
currentIndex | property |
currentIndex:Number
[read-only]Implementation
public function get currentIndex():Number
currentPreroll | property |
length | property |
length:Number
[read-only]Implementation
public function get length():Number
nextClip | property |
previousClip | property |
Playlist | () | constructor |
addClip | () | method |
public function addClip(clip:Clip, pos:int = -1, silent:Boolean = false):void
Adds a new clip into the playlist. Insertion of clips does not change the current clip.
Parametersclip:Clip |
|
pos:int (default = -1 ) — optional insertion point, if not given the clip is added to the end of the list.
|
|
silent:Boolean (default = false ) — if true does not dispatch the CLIP_ADD event
|
See also
dispatchPlaylistReplace | () | method |
flow_internal function dispatchPlaylistReplace(oldClips:Array = null):void
Parameters
oldClips:Array (default = null )
|
getClip | () | method |
public function getClip(index:Number):Clip
Gets the clip with the specified index.
Parametersindex:Number — of the clip to retrieve, if -1 returns the common clip
|
Clip |
hasNext | () | method |
public function hasNext(skipPreAndPostRolls:Boolean = true):Boolean
Parameters
skipPreAndPostRolls:Boolean (default = true )
|
Boolean |
hasPrevious | () | method |
public function hasPrevious(skipPreAndPostRolls:Boolean = true):Boolean
Parameters
skipPreAndPostRolls:Boolean (default = true )
|
Boolean |
hasType | () | method |
public function hasType(type:ClipType):Boolean
Does this playlist have a clip with the specified type?
Parameterstype:ClipType |
Boolean |
indexOf | () | method |
next | () | method |
public function next(skipPreAndPostRolls:Boolean = true):Clip
Parameters
skipPreAndPostRolls:Boolean (default = true )
|
Clip |
previous | () | method |
public function previous(skipPreAndPostRolls:Boolean = true):Clip
Parameters
skipPreAndPostRolls:Boolean (default = true )
|
Clip |
removeChildClip | () | method |
public function removeChildClip(clip:Clip):void
Removes the specified child clip.
Parametersclip:Clip |
replaceClips | () | method |
public function replaceClips(clip:Clip):void
Discards all clips and adds the specified clip to the list.
Parametersclip:Clip |
replaceClips2 | () | method |
public function replaceClips2(clips:Array):void
Discards all clips and addes the specified clips to the list.
Parametersclips:Array |
setClips | () | method |
flow_internal override function setClips(clips:Array):void
Parameters
clips:Array |
setInStreamClip | () | method |
toIndex | () | method |
toString | () | method |
public function toString():String
Returns
String |