Package com.wowza.wms.stream.publish
Class Playlist
Object
com.wowza.wms.stream.publish.Playlist
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Appends an item to this playlistgetItems()
Get the items in the playlist (returns a copy of the list)getName()
Returns the name of this playlist as defined in the XML definition fileboolean
boolean
Opens this playlist on the given stream...void
removeItem
(int index) Remove an item from the listvoid
setRepeat
(boolean repeat)
-
Constructor Details
-
Playlist
Class constructor - A simple structure that maintains a list of playlist items.- Parameters:
sName
- - name of playlist - as defined in the XML definition file
-
-
Method Details
-
getItems
Get the items in the playlist (returns a copy of the list)- Returns:
- items in the playlist (returns a copy of the list)
-
getRepeat
public boolean getRepeat() -
setRepeat
public void setRepeat(boolean repeat) -
addItem
Appends an item to this playlist- Parameters:
sName
- - item namestart
- - start secondslength
- - playlength seconds
-
removeItem
public void removeItem(int index) Remove an item from the list- Parameters:
index
- index of item to remove
-
open
Opens this playlist on the given stream... stopping anything currently playing on that stream and switching over.- Parameters:
s
- - stream to play on- Returns:
- - true if successful
-
getName
Returns the name of this playlist as defined in the XML definition file- Returns:
- name of this playlist
-