|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--net.mp3elf.elfServer.elfXMLRPCProxy
This class provides the functions that are available to XMLRPC clients.
The argument and return types of these functions are mapped to XML-RPC types as documented
by the helma xml-rpc library.
The functions in this class are prefixed by the appropriate elf MAC address. The elf MAC Address can be obtained from ServerXMLRPCProxy.enumerateElfs()
Note that the constructor is documented here by JavaDoc. You do not need to call the constructor from your XMLRPC Client
| Constructor Summary | |
elfXMLRPCProxy(net.mp3elf.elfServer.elfTINI tini)
Creates new elfXMLRPCProxy |
|
| Method Summary | |
boolean |
addElfListener(java.lang.String URL,
java.lang.String listenerFunction)
Register a callback XMLRPC function to receive elf change notifications. |
void |
disableControls()
Disable the mp3elf control panel. |
void |
enableControls()
Re-enable the mp3elf front panel controls. Note: Other clients may have called disableControls(),
so controls may still be disabled after calling this function. |
java.lang.String |
getAlbumName()
Get the album name for the currently playing track. |
java.lang.String |
getArtistName()
Get the artist name for the currently playing track. |
boolean |
getConnectedStatus()
This function indicates whether the elf hardware is currently connected to this server process |
int |
getCurrentPlaylistIndex()
Get the index of the currently playing track within the current playlist |
int |
getPlayingStatus()
Obtain the current playing status of this elf |
java.util.Vector |
getPlaylistEntries()
Get the file names for the current playlist |
java.lang.String |
getPlaylistName()
Retrieve the name of the current playlist |
java.util.Hashtable |
getStatusTable()
Obtains a Hashtable containing several pieces of information about the elf. |
java.lang.String |
getTrackName()
Get the name of the currently playing track. |
int |
pause()
Pause playback. |
int |
play()
Start playback. |
int |
playlistAddItem(java.lang.String item)
Add this file to the end of the current playlist |
void |
removeElfListener(java.lang.String URL,
java.lang.String listenerFunction)
Deregister a callback that was registered with addElfListener(String URL, String listenerFunction) |
int |
selectPlaylist(java.lang.String playlistID)
Select a new playlist for this elf |
int |
skipBack()
Skip back one track in the current playlist |
int |
skipFwd()
Skip forward one track in the current playlist |
int |
stop()
Stop playback. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public elfXMLRPCProxy(net.mp3elf.elfServer.elfTINI tini)
tini - The elfTINI that this class proxies for.| Method Detail |
public java.util.Hashtable getStatusTable()
| Name | Type | Description |
| playingStatus | Integer | See getPlayingStatus() |
| playlistName | String | See getPlaylistName() |
| trackName | String | See getTrackName() |
| artistName | String | See getArtistName() |
| albumName | String | See getAlbumName() |
public int stop()
getPlayingStatus()public int play()
getPlayingStatus()public int pause()
getPlayingStatus()public int skipFwd()
getPlayingStatus()public int skipBack()
getPlayingStatus()public java.lang.String getPlaylistName()
public java.lang.String getTrackName()
public java.lang.String getArtistName()
public java.util.Vector getPlaylistEntries()
public java.lang.String getAlbumName()
public int selectPlaylist(java.lang.String playlistID)
playlistID - The playlist ID to selectpublic int playlistAddItem(java.lang.String item)
item - The file name to add to the current playlist. This file path must be accessible to the elfServerpublic int getPlayingStatus()
public boolean getConnectedStatus()
public int getCurrentPlaylistIndex()
getPlaylistEntries() to obtain the filename of the currently playing track
public boolean addElfListener(java.lang.String URL,
java.lang.String listenerFunction)
| Value | Event |
| 0 | End of Track |
| 1 | Start of Track |
| 2 | Paused |
| 3 | Playing |
| 4 | Stopped |
| 5 | Skip Forward |
| 6 | Skip Backward |
| 7 | End of Playlist |
| 8 | New Playlist |
| 9 | Elf has connected |
| 10 | Elf has disconnected |
URL - The URL (Host, port and path) of the server providing the XMLRPC functionlistenerFunction - The name of the function to be called on the specified server
public void removeElfListener(java.lang.String URL,
java.lang.String listenerFunction)
addElfListener(String URL, String listenerFunction)URL - The URL that was provided to registerListenerlistenerFunction - The function that was provided to addElfListenerpublic void disableControls()
public void enableControls()
disableControls(),
so controls may still be disabled after calling this function.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||