Package com.wowza.wms.stream.publish
Class Playlist
- Object
- 
- com.wowza.wms.stream.publish.Playlist
 
- 
 public class Playlist extends Object
- 
- 
Constructor SummaryConstructors Constructor Description Playlist(String sName)Class constructor - A simple structure that maintains a list of playlist items.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(String sName, int start, int length)Appends an item to this playlistjava.util.List<PlaylistItem>getItems()Get the items in the playlist (returns a copy of the list)StringgetName()Returns the name of this playlist as defined in the XML definition filebooleangetRepeat()booleanopen(Stream s)Opens this playlist on the given stream...voidremoveItem(int index)Remove an item from the listvoidsetRepeat(boolean repeat)
 
- 
- 
- 
Method Detail- 
getItemspublic java.util.List<PlaylistItem> getItems() Get the items in the playlist (returns a copy of the list)- Returns:
- items in the playlist (returns a copy of the list)
 
 - 
getRepeatpublic boolean getRepeat() 
 - 
setRepeatpublic void setRepeat(boolean repeat) 
 - 
addItempublic void addItem(String sName, int start, int length)Appends an item to this playlist- Parameters:
- sName- - item name
- start- - start seconds
- length- - playlength seconds
 
 - 
removeItempublic void removeItem(int index) Remove an item from the list- Parameters:
- index- index of item to remove
 
 - 
openpublic boolean open(Stream s) 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
 
 - 
getNamepublic String getName() Returns the name of this playlist as defined in the XML definition file- Returns:
- name of this playlist
 
 
- 
 
-