public interface IPlaylist
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(IPlayItem item)
Add an item to the list.
|
void |
addItem(IPlayItem item,
int index)
Add an item to specific index.
|
IPlayItem |
getCurrentItem()
Get currently playing item
|
int |
getCurrentItemIndex()
Get currently playing item index.
|
IPlayItem |
getItem(int index)
Get the item according to the index.
|
int |
getItemSize()
Return number of items in list
|
boolean |
hasMoreItems()
Check if the playlist has more items after the currently playing one.
|
boolean |
isRandom()
Whether items are randomly played.
|
boolean |
isRepeat()
Whether repeat playing an item.
|
boolean |
isRewind()
Whether rewind the list.
|
void |
nextItem()
Go for next item decided by controller logic.
|
void |
previousItem()
Go for the previous played item.
|
void |
removeAllItems()
Remove all items.
|
void |
removeItem(int index)
Remove an item from list.
|
void |
setItem(int index)
Set the current item for playing.
|
void |
setPlaylistController(IPlaylistController controller)
Set list controller.
|
void |
setRandom(boolean random)
Set whether items should be randomly played.
|
void |
setRepeat(boolean repeat)
Set whether repeat playing an item.
|
void |
setRewind(boolean rewind)
Set whether rewind the list.
|
void addItem(IPlayItem item)
item - Playlist itemvoid addItem(IPlayItem item, int index)
item - Playlist itemindex - Index in listvoid removeItem(int index)
index - Index in listvoid removeAllItems()
int getItemSize()
int getCurrentItemIndex()
IPlayItem getCurrentItem()
IPlayItem getItem(int index)
index - Item indexboolean hasMoreItems()
trueif more items are available,
falseotherwise
void previousItem()
void nextItem()
void setItem(int index)
index - Position in listboolean isRandom()
trueif shuffle is on for this list,
falseotherwise
void setRandom(boolean random)
random - Shuffle flagboolean isRewind()
trueif playlist is rewind on end,
falseotherwise
void setRewind(boolean rewind)
rewind - New vallue for rewind flagboolean isRepeat()
trueif repeat mode is on for this playlist,
falseotherwise
void setRepeat(boolean repeat)
repeat - New value for item playback repeat flagvoid setPlaylistController(IPlaylistController controller)
controller - Playlist controllerCopyright © 2005–2017 Red5. All rights reserved.