public interface PlaylistSupport
Modifier and Type | Method and Description |
---|---|
void |
addToPlaylist(List<MRL> mediaLocators)
Adds the media locators to the players' playlist.
|
void |
addToPlaylist(MRL mediaLocator)
Adds the media locator to the players' playlist.
|
void |
addToPlaylist(String... mediaURLs)
Adds the media at the specified URLs to the players' playlist.
|
void |
addToPlaylist(String mediaURL)
Adds the media at the specified URL to the players' playlist.
|
void |
clearPlaylist()
Removes all entries in the players' playlist
|
int |
getPlaylistSize()
Returns the number of entries in the playlist
|
boolean |
isShuffleEnabled()
Checks if this player is in shuffle mode.
|
void |
play(int index)
Play playlist entry at the specified
index |
void |
playNext()
Plays the next item in the playlist
|
void |
playPrevious()
Plays the previous item in the playlist
|
void |
removeFromPlaylist(int index)
Removes the entry at the specified index from the players' playlist.
|
void |
setShuffleEnabled(boolean enable)
Enables or disables players' shuffle mode.
|
void setShuffleEnabled(boolean enable)
enable
- true
to enable shuffle, false
otherwiseboolean isShuffleEnabled()
true
if player is in shuffle mode, false
otherwise.void addToPlaylist(String mediaURL)
In respect of the same domain policy of some plugins/browsers, the URL should point to a destination on the same domain where the application is hosted.
mediaURL
- the URL of the media.void addToPlaylist(String... mediaURLs)
The player chooses ONLY ONE of the mediaURLs
it supports.
In respect of the same domain policy of some browsers, the URLs should point to a destination on the same domain where the application is hosted.
mediaURLs
- the alternative URLs of the same media (probably in different formats).void addToPlaylist(MRL mediaLocator)
mediaLocator
- specifies alternative URLs of the same mediavoid addToPlaylist(List<MRL> mediaLocators)
mediaLocators
- list of alternative URLs of the same mediavoid removeFromPlaylist(int index)
index
- the index of the playlist entry.void clearPlaylist()
void playNext() throws PlayException
PlayException
- if there are no more entries in the playlist to be played. Especially if we've
advanced to the end of the playlist. Note: A player with a negative loop count (i.e. set to play
forever!) may not throw this exceptionvoid playPrevious() throws PlayException
PlayException
- if there are no more entries in the playlist to be played. Especially if we've
gotten to the beginning of the playlist. Note: A player with a negative loop count (i.e. set to play
forever!) may not throw this exceptionvoid play(int index) throws IndexOutOfBoundsException
index
index
- number of the playlist entryIndexOutOfBoundsException
- if index
is outside the bounds of the playlistint getPlaylistSize()
Copyright © 2009-2013. All Rights Reserved.