public class Playlist
extends Object
| Constructor and Description |
|---|
Playlist(String sName)
Class constructor - A simple structure that maintains a list of playlist
items.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(String sName,
int start,
int length)
Appends an item to this playlist
|
java.util.List<PlaylistItem> |
getItems()
Get the items in the playlist (returns a copy of the list)
|
String |
getName()
Returns the name of this playlist as defined in the XML definition file
|
boolean |
getRepeat() |
boolean |
open(Stream s)
Opens this playlist on the given stream...
|
void |
removeItem(int index)
Remove an item from the list
|
void |
setRepeat(boolean repeat) |
public Playlist(String sName)
sName - - name of playlist - as defined in the XML definition filepublic void addItem(String sName,
int start,
int length)
sName - - item namestart - - start secondslength - - playlength secondspublic java.util.List<PlaylistItem> getItems()
public String getName()
public boolean getRepeat()
public boolean open(Stream s)
s - - stream to play onpublic void removeItem(int index)
index - index of item to removepublic void setRepeat(boolean repeat)