public class MPDPlayerController extends Observable implements IPlayerController, Observer
Modifier and Type | Field and Description |
---|---|
private static org.apache.log4j.Logger |
log |
private MPDPlayer |
mpdPlayer |
Constructor and Description |
---|
MPDPlayerController() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
String |
getUniqueId() |
boolean |
isActive() |
boolean |
isPlaying() |
void |
loaded() |
void |
openFile(CustomTrack track) |
void |
pause(boolean bPause) |
void |
playThis(CustomTrack t,
long v,
boolean bMute) |
void |
preLoadTrack(CustomTrack track) |
void |
resume() |
void |
seekAbsolute(long seconds) |
void |
setMute(boolean mute) |
void |
setVolume(long volume) |
void |
stop() |
void |
update(Observable arg0,
Object obj) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addObserver
private static org.apache.log4j.Logger log
private MPDPlayer mpdPlayer
public void preLoadTrack(CustomTrack track)
preLoadTrack
in interface IPlayerController
public void loaded()
loaded
in interface IPlayerController
public void openFile(CustomTrack track)
openFile
in interface IPlayerController
public void playThis(CustomTrack t, long v, boolean bMute)
playThis
in interface IPlayerController
public void pause(boolean bPause)
pause
in interface IPlayerController
public void resume()
resume
in interface IPlayerController
public void stop()
stop
in interface IPlayerController
public void destroy()
destroy
in interface IPlayerController
public void setMute(boolean mute)
setMute
in interface IPlayerController
public void setVolume(long volume)
setVolume
in interface IPlayerController
public void seekAbsolute(long seconds)
seekAbsolute
in interface IPlayerController
public boolean isPlaying()
isPlaying
in interface IPlayerController
public boolean isActive()
isActive
in interface IPlayerController
public String getUniqueId()
getUniqueId
in interface IPlayerController
public void update(Observable arg0, Object obj)
Copyright © 2013–2014. All rights reserved.