java.lang.Object
irate.client.ExternalPlayer
- All Implemented Interfaces:
- Player
- Direct Known Subclasses:
- MadplayPlayer
- public class ExternalPlayer
- extends java.lang.Object
- implements Player
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private java.lang.String name
path
private java.lang.String path
ACTION_PAUSE
private final int ACTION_PAUSE
- See Also:
- Constant Field Values
ACTION_PLAY
private final int ACTION_PLAY
- See Also:
- Constant Field Values
ACTION_CLOSE
private final int ACTION_CLOSE
- See Also:
- Constant Field Values
action
private int action
paused
private boolean paused
process
private java.lang.Process process
playTime
private long playTime
ExternalPlayer
public ExternalPlayer(java.lang.String name,
java.lang.String path)
throws java.io.FileNotFoundException
ExternalPlayer
public ExternalPlayer(java.lang.String name,
java.lang.String[] paths)
throws java.io.FileNotFoundException
getName
public java.lang.String getName()
- Specified by:
getName in interface Player
setPaused
public void setPaused(boolean paused)
- Specified by:
setPaused in interface Player
isPaused
public boolean isPaused()
- Specified by:
isPaused in interface Player
formatResumeArgument
public java.lang.String[] formatResumeArgument()
getPlayTime
protected long getPlayTime()
- Get the number of milliseconds of play time so far for the song
currently being played.
play
public void play(java.io.File file)
throws PlayerException
- Specified by:
play in interface Player
close
public void close()
- Specified by:
close in interface Player