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 IPlaylistControllerplaylist - 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 IPlaylistControllerplaylist - The related play list.itemIndex - The current item index. IPlaylist.itemSize indicated to retrieve the last item for play.Copyright © 2005–2017 Red5. All rights reserved.