org.red5.server.stream
public class SimplePlaylistController extends Object implements IPlaylistController
Constructor and Description |
---|
SimplePlaylistController() |
Modifier and Type | Method and Description |
---|---|
int |
nextItem(IPlaylist playlist,
int itemIndex)
Get next item to play.
|
int |
previousItem(IPlaylist playlist,
int itemIndex)
Get previous item to play.
|
public int nextItem(IPlaylist playlist, int itemIndex)
nextItem
in interface IPlaylistController
playlist
- The related play list.itemIndex
- The current item index. -1 indicates to retrieve
the first item for play.public int previousItem(IPlaylist playlist, int itemIndex)
previousItem
in interface IPlaylistController
playlist
- The related play list.itemIndex
- The current item index. IPlaylist.itemSize
indicated to retrieve the last item for play.Copyright © 2006-2012 The Red5 Project