INIT
public static final int INIT
OPEN
public static final int OPEN
PAUSE
public static final int PAUSE
PLAY
public static final int PLAY
SCROLL_PERIOD
public static final long SCROLL_PERIOD
STOP
public static final int STOP
TEXT_LENGTH_MAX
public static final int TEXT_LENGTH_MAX
actionPerformed
public void actionPerformed(ActionEvent e)
closePlayer
protected void closePlayer()
Free resources and close the player.
getConfig
public Config getConfig()
Return config.
getController
public BasicController getController()
Return player controller.
getCurrentTitle
public String getCurrentTitle()
Return current title in player.
getLoader
public Loader getLoader()
Return parent loader.
getPlaylist
public Playlist getPlaylist()
getSkin
public Skin getSkin()
Return skin.
getTimeLengthEstimation
public long getTimeLengthEstimation(Map properties)
Try to compute time length in milliseconds.
loadPlaylist
public boolean loadPlaylist(String playlistName)
Load playlist.
loadSkin
public void loadSkin()
loadUI
public void loadUI(Loader loader)
Load main player.
openFile
protected File openFile(String file)
Returns a File from a filename.
opened
public void opened(Object stream,
Map properties)
playFiles
protected void playFiles(List files)
Play files from a list.
pressEject
public void pressEject()
Simulates "Eject" selection.
pressNext
public void pressNext()
Simulates "Next" selection.
pressPause
public void pressPause()
Simulates "Pause" selection.
pressPrevious
public void pressPrevious()
Simulates "Previous" selection.
pressStart
public void pressStart()
Simulates "Play" selection.
pressStop
public void pressStop()
Simulates "Stop" selection.
processActionEvent
public void processActionEvent(ActionEvent e)
Process action event.
processDnD
public void processDnD(Object data)
Process Drag&Drop
processEject
protected void processEject(int modifiers)
Process EJECT event.
processJumpToFile
protected void processJumpToFile(int modifiers)
Process JUMP FILE event.
processNext
public void processNext(int modifiers)
Process NEXT event.
processPause
public void processPause(int modifiers)
Process PAUSE event.
processPlay
protected void processPlay(int modifiers)
Process PLAY event.
processPreferences
protected void processPreferences(int modifiers)
Process PREFERENCES event.
processPrevious
public void processPrevious(int modifiers)
Process PREVIOUS event.
processProgress
public void processProgress(int bytesread,
long microseconds,
byte[] pcmdata,
Map properties)
Process PROGRESS event.
bytesread
- microseconds
- pcmdata
- properties
-
processSeek
protected void processSeek(double rate)
Process seek feature.
processSkinBrowser
protected void processSkinBrowser(int modifiers)
Process SKINS BROWSER event.
processStateUpdated
public void processStateUpdated(BasicPlayerEvent event)
Process STATEUPDATED event.
processStop
public void processStop(int modifiers)
Process STOP event.
progress
public void progress(int bytesread,
long microseconds,
byte[] pcmdata,
Map properties)
setController
public void setController(BasicController controller)
A handle to the BasicPlayer, plugins may control the player through
the controller (play, stop, ...)
setCurrentSong
public void setCurrentSong(PlaylistItem pli)
Sets the current song to play and start playing if needed.
setEqualizerUI
public void setEqualizerUI(EqualizerUI eq)
setPlaylistUI
public void setPlaylistUI(PlaylistUI playlistUI)
showMessage
public void showMessage(String txt)
Shows message in title an updates bitRate,sampleRate, Mono/Stereo,time features.
showTitle
public void showTitle(String str)
Display text in title area.
stateChanged
public void stateChanged(ChangeEvent e)
stateUpdated
public void stateUpdated(BasicPlayerEvent event)
toggleEqualizer
protected void toggleEqualizer()
Toggle equalizerUI.
togglePlaylist
protected void togglePlaylist()
Toggle playlistUI.