|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tuneology.avm.player.Player | +--com.tuneology.avm.player.LocalPlayer | +--com.tuneology.avm.player.WinampPlayer
An interface to Winamp, a Windows media player.
Fields inherited from class com.tuneology.avm.player.LocalPlayer |
mixer, mixerChannel, paused |
Fields inherited from class com.tuneology.avm.player.Player |
dev, listeners, looping |
Constructor Summary | |
WinampPlayer(java.lang.String dev,
java.lang.String name)
|
Method Summary | |
void |
addFile(java.lang.String path)
|
void |
clearPlaylist()
|
void |
close()
Close the player and release its resources. |
void |
cueFile(MediaData f)
Loads a file, sets the current position to the beginning, and pauses. |
static java.lang.String |
getDescription()
|
long |
getEQValue(long eq_index)
Retrieves the EQ slider value for the slider specified by EQ_Index. |
java.lang.String |
getName()
|
long |
getPreAmpValue()
|
int |
getSize()
Returns the maximum size of the current file. |
java.lang.String |
getStatus()
Retrieves the status of WinAMP: PLAYING, PAUSED or STOPPED |
long |
getTrackLength()
|
long |
getTrackPosition()
Retrieves the position of the current track in secs. |
static java.lang.String |
getVersionString()
|
Volume |
getVolume()
Gets the audio output volume. |
VolumeRange |
getVolumeRange()
|
void |
jumpTo(int pos)
Moves the current position. |
void |
pause()
Temporarily stops playing at the current position. |
void |
play()
Starts playing after calling stop or cuefile. |
boolean |
playFile(java.lang.String path)
Play the file, blocking until it's done. |
void |
playNextTrack()
|
void |
playPrevTrack()
|
void |
playStream(java.io.InputStream str)
|
void |
seekToPosition(long pos)
|
void |
sendCommandMessage(long msg)
|
void |
setEQValue(long eq_index,
long eq_value)
Sets the EQ slider value for the slider specified by eq_index. |
void |
setPreAmpValue(long preamp_value)
|
void |
setVolume(Volume vol)
Sets the audio output volume. |
static void |
setWinampCmd(java.lang.String s)
|
void |
shutdown()
|
void |
stop()
Stops playing and resets the current position to the beginning. |
void |
unpause()
Starts playing after calling pause. |
Methods inherited from class com.tuneology.avm.player.LocalPlayer |
canEject, eject, getCanvas, getMixerChannel, getPcmChannel, initInstance, setArtist, setTime, setTitle, setTotal, setTrack |
Methods inherited from class com.tuneology.avm.player.Player |
addStatusListener, findPlayerClass, findVideoPlayerClass, formatSeconds, getAudioDevices, getAudioPlayers, getDescription, getDevice, getDeviceDescription, getLoop, getVersions, getVideoPlayers, newMediaPlayer, removeStatusListener, setDevice, setLoop, shutdownPlayers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.tuneology.avm.player.MediaPlayer |
addStatusListener, getCanvas, getDevice, getLoop, removeStatusListener, setArtist, setDevice, setLoop, setTitle, setTotal, setTrack |
Constructor Detail |
public WinampPlayer(java.lang.String dev, java.lang.String name) throws java.lang.Exception
dev
- name
- java.lang.Exception
- Method Detail |
public boolean playFile(java.lang.String path) throws java.lang.Exception
MediaPlayer
playFile
in interface MediaPlayer
path
- java.lang.Exception
- public void playStream(java.io.InputStream str) throws java.lang.Exception
playStream
in interface MediaPlayer
str
- java.lang.Exception
- public void cueFile(MediaData f) throws java.lang.Exception
MediaPlayer
cueFile
in interface MediaPlayer
f
- java.lang.Exception
- public int getSize() throws java.lang.Exception
MediaPlayer
getSize
in interface MediaPlayer
java.lang.Exception
- public void jumpTo(int pos) throws java.lang.Exception
MediaPlayer
jumpTo
in interface MediaPlayer
jumpTo
in class LocalPlayer
f
- java.lang.Exception
- public void play() throws java.lang.Exception
MediaPlayer
play
in interface MediaPlayer
play
in class LocalPlayer
java.lang.Exception
- public void playNextTrack() throws java.lang.Exception
playNextTrack
in interface MediaPlayer
playNextTrack
in class LocalPlayer
java.lang.Exception
- public void playPrevTrack() throws java.lang.Exception
playPrevTrack
in interface MediaPlayer
playPrevTrack
in class LocalPlayer
java.lang.Exception
- public void pause() throws java.lang.Exception
MediaPlayer
pause
in interface MediaPlayer
pause
in class LocalPlayer
java.lang.Exception
- public void unpause() throws java.lang.Exception
MediaPlayer
unpause
in interface MediaPlayer
unpause
in class LocalPlayer
java.lang.Exception
- public void stop() throws java.lang.Exception
MediaPlayer
stop
in interface MediaPlayer
stop
in class LocalPlayer
java.lang.Exception
- public void shutdown()
shutdown
in class Player
public java.lang.String getName()
getName
in interface MediaPlayer
getName
in class Player
public void setEQValue(long eq_index, long eq_value)
public void setPreAmpValue(long preamp_value)
public void clearPlaylist()
public java.lang.String getStatus()
public long getTrackPosition()
public long getEQValue(long eq_index)
public long getPreAmpValue()
public void seekToPosition(long pos)
public VolumeRange getVolumeRange()
getVolumeRange
in interface MediaPlayer
getVolumeRange
in class LocalPlayer
com.tuneology.avm.player.LocalPlayer
java.lang.Exception
- public Volume getVolume() throws java.io.IOException
getVolume
in interface MediaPlayer
getVolume
in class LocalPlayer
java.io.IOException
- public void setVolume(Volume vol) throws java.io.IOException
setVolume
in interface MediaPlayer
setVolume
in class LocalPlayer
vol
- java.io.IOException
- public long getTrackLength()
public void addFile(java.lang.String path)
public void close() throws java.io.IOException
MediaPlayer
close
in interface MediaPlayer
com.tuneology.avm.player.MediaPlayer
java.lang.Exception
- public void sendCommandMessage(long msg)
public static java.lang.String getVersionString()
public static void setWinampCmd(java.lang.String s) throws java.lang.Exception
s
- public static java.lang.String getDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |