com.limegroup.gnutella.gui.mp3
Interface AudioPlayer

All Superinterfaces:
RefreshListener

public interface AudioPlayer
extends RefreshListener

This interface defines the required functionality of an audio player component.


Field Summary
static int STATUS_PAUSED
          Constant for the paused state.
static int STATUS_PLAYING
          Constant for the playing state.
static int STATUS_STOPPED
          Constant for the stopped state.
 
Method Summary
 void addAudioPlayerListener(AudioPlayerListener listener)
          Adds a listener to the list of player listeners.
 int getFrameSeek()
          Returns the frame seek position.
 int getStatus()
          Returns the current state of the player.
 void pause()
          Pauses the player.
 void play(java.io.File file)
          Plays the specified file.
 void stop()
          Stops the player.
 void unpause()
          Unpauses the player.
 
Methods inherited from interface com.limegroup.gnutella.gui.RefreshListener
refresh
 

Field Detail

STATUS_PLAYING

public static final int STATUS_PLAYING
Constant for the playing state.

See Also:
Constant Field Values

STATUS_PAUSED

public static final int STATUS_PAUSED
Constant for the paused state.

See Also:
Constant Field Values

STATUS_STOPPED

public static final int STATUS_STOPPED
Constant for the stopped state.

See Also:
Constant Field Values
Method Detail

getStatus

public int getStatus()
Returns the current state of the player.

Returns:
the state of the player -- one of STATUS_PLAYING, STATUS_PAUSED, STATUS_STOPPED

unpause

public void unpause()
Unpauses the player.


pause

public void pause()
Pauses the player.


stop

public void stop()
Stops the player.


play

public void play(java.io.File file)
Plays the specified file.

Parameters:
file - the File instance denoting the abstract pathname of the file to play

getFrameSeek

public int getFrameSeek()
Returns the frame seek position.

Returns:
the seek position of the seek bar

addAudioPlayerListener

public void addAudioPlayerListener(AudioPlayerListener listener)
Adds a listener to the list of player listeners.