|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lyra.Host.Playback
public class Playback
This class provides a direct interface to the player capabilities of the Multimedia Player Daemon (MPD). For the most part, this is an interface to the Terminus.
Terminus
Field Summary | |
---|---|
private static java.lang.String |
CLASS
|
private Terminus |
Host
|
private java.util.Map<java.lang.String,java.lang.String> |
Lang
|
private Ledger |
Logger
|
Constructor Summary | |
---|---|
Playback(Ledger logger,
Terminus host,
java.util.Map<java.lang.String,java.lang.String> lang)
Primary constructor for the class. |
Method Summary | |
---|---|
boolean |
playNext()
Shifts the player to a song next in the current playlist. |
boolean |
playPause()
Stops the plays but retains song position. |
boolean |
playPrevious()
Shifts the player to a song previous in the current playlist. |
boolean |
playResume()
Starts playback resuming at last position. |
boolean |
playSeek(int pos,
int seconds)
Seeks to the position in seconds of entry in position in the playlist. |
boolean |
playSeekByIdentifier(int ident,
int seconds)
Seeks to the position in seconds of entry in identifier in the playlist. |
boolean |
playStart()
Starts song play back. |
boolean |
playStart(int pos)
Starts song play back. |
boolean |
playStartByIdentifier(int ident)
This starts the play back of a specific song within the current playlist based on the song identifier. |
boolean |
playStop()
Stops the player and play back resetting the song position. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Ledger Logger
private Terminus Host
private java.util.Map<java.lang.String,java.lang.String> Lang
private static final java.lang.String CLASS
Constructor Detail |
---|
public Playback(Ledger logger, Terminus host, java.util.Map<java.lang.String,java.lang.String> lang)
logger
- Ledger instance for logging of events.host
- Host instance for interaction with the daemon.lang
- Map of language elementsMethod Detail |
---|
public boolean playPrevious()
public boolean playStop()
public boolean playPause()
public boolean playResume()
public boolean playStart()
public boolean playStart(int pos)
pos
- Song position in the current playlist.
public boolean playStartByIdentifier(int ident)
ident
- Song Identifier
public boolean playNext()
public boolean playSeek(int pos, int seconds)
pos
- Position in the current playlist.seconds
- Seconds to set the position of playback to.
public boolean playSeekByIdentifier(int ident, int seconds)
ident
- Identifier number for song in the current playlist.seconds
- Seconds to set the position of playback to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |