net.sourceforge.atunes.kernel.modules.mplayer
Class MPlayerHandler

java.lang.Object
  extended by net.sourceforge.atunes.kernel.handlers.PlayerHandler
      extended by net.sourceforge.atunes.kernel.modules.mplayer.MPlayerHandler

public class MPlayerHandler
extends PlayerHandler

The Class MPlayerHandler.


Field Summary
 
Fields inherited from class net.sourceforge.atunes.kernel.handlers.PlayerHandler
balance, currentPlayList, equalizer, karaoke, lastButtonPressed, logger, muted, NEXT, paused, PLAY, playListController, PREVIOUS, repeat, SEEK, shuffle, STOP, useNormalisation, volume
 
Constructor Summary
MPlayerHandler()
          Instantiates a new m player handler.
 
Method Summary
 void finish()
          Stops the player.
 net.sourceforge.atunes.kernel.modules.mplayer.MPlayerCommandWriter getCommandWriter()
          Gets the command writer.
 boolean isPlaying()
          Checks if is playing.
 void next(boolean autoNext)
          Goes to next audio file in playlist.
 void play(boolean buttonPressed)
          Play music.
 void previous()
          Previous.
 void seek(double position)
          Seek.
 void setBalance(float value)
          Sets the balance.
 void setMute(boolean mute)
          Sets the mute.
 void setVolume(int perCent)
          Sets the volume.
 void stop(boolean userStopped)
          Stop.
 
Methods inherited from class net.sourceforge.atunes.kernel.handlers.PlayerHandler
getCurrentDuration, getCurrentPlayList, getEqualizer, getInstance, getVolume, isKaraoke, isMute, isPaused, isRepeat, isShuffle, isUseNormalisation, notifyPlayerError, setCurrentDuration, setCurrentPlayList, setDuration, setEqualizer, setKaraoke, setPlayListPositionToPlay, setRepeat, setShuffle, setTime, setUseNormalisation, volumeDown, volumeUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MPlayerHandler

public MPlayerHandler()
Instantiates a new m player handler.

Method Detail

finish

public void finish()
Stops the player.

Specified by:
finish in class PlayerHandler

isPlaying

public boolean isPlaying()
Description copied from class: PlayerHandler
Checks if is playing.

Specified by:
isPlaying in class PlayerHandler
Returns:
true, if is playing

next

public void next(boolean autoNext)
Goes to next audio file in playlist.

Specified by:
next in class PlayerHandler
Parameters:
autoNext - the auto next

play

public void play(boolean buttonPressed)
Play music. Pass true if user pressed a button.

Specified by:
play in class PlayerHandler
Parameters:
buttonPressed - the button pressed

previous

public void previous()
Description copied from class: PlayerHandler
Previous.

Specified by:
previous in class PlayerHandler

seek

public void seek(double position)
Description copied from class: PlayerHandler
Seek.

Specified by:
seek in class PlayerHandler
Parameters:
position - the position

setBalance

public void setBalance(float value)
Description copied from class: PlayerHandler
Sets the balance.

Specified by:
setBalance in class PlayerHandler
Parameters:
value - the new balance

setMute

public void setMute(boolean mute)
Description copied from class: PlayerHandler
Sets the mute.

Specified by:
setMute in class PlayerHandler
Parameters:
mute - the new mute

setVolume

public void setVolume(int perCent)
Description copied from class: PlayerHandler
Sets the volume.

Specified by:
setVolume in class PlayerHandler
Parameters:
perCent - the new volume

stop

public void stop(boolean userStopped)
Description copied from class: PlayerHandler
Stop.

Specified by:
stop in class PlayerHandler
Parameters:
userStopped - the user stopped

getCommandWriter

public net.sourceforge.atunes.kernel.modules.mplayer.MPlayerCommandWriter getCommandWriter()
Gets the command writer.

Returns:
the command writer


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.