|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.handlers.PlayerHandler
net.sourceforge.atunes.kernel.modules.player.mplayer.MPlayerHandler
public class MPlayerHandler
Field Summary |
---|
Fields inherited from class net.sourceforge.atunes.kernel.handlers.PlayerHandler |
---|
DEFAULT_ENGINE, logger |
Constructor Summary | |
---|---|
MPlayerHandler()
|
Method Summary | |
---|---|
void |
applyEqualization(float[] values)
This method must be implemented by player engines. |
void |
applyMuteState(boolean mute)
This method must be implemented by player engines. |
protected void |
finishedFadeAway()
Called when finished fade away |
void |
finishPlayer()
This method must be implemented by player engines It's called when application finishes |
boolean |
isEngineAvailable()
This method must be implemented by player engines. |
boolean |
isEnginePlaying()
Checks if engine is currently playing ( true ) or not (
false ) |
protected boolean |
isMute()
|
protected boolean |
isPlaybackPaused()
Checks if playback is paused. |
protected void |
notifyRadioOrPodcastFeedEntry()
|
protected void |
pausePlayback()
This method must be implemented by player engines. |
protected void |
resumePlayback()
This method must be implemented by player engines. |
protected void |
seekTo(double position)
This method must be implemented by player engines. |
protected void |
setCurrentLength(long currentDuration)
|
protected void |
setTime(int time)
|
void |
setVolume(int volume)
This method must be implemented by player engines. |
protected void |
startPlayback(AudioObject audioObjectToPlay,
AudioObject audioObject)
play this audio object |
protected void |
stopPlayback(boolean userStopped,
boolean useFadeAway)
This method must be implemented by player engines. |
boolean |
supportsCapability(PlayerEngineCapability capability)
This method must be implemented by player engines. |
float[] |
transformEqualizerValues(float[] values)
This method must be implemented by player engines. |
Methods inherited from class net.sourceforge.atunes.kernel.handlers.PlayerHandler |
---|
applicationFinish, getEngineNames, getEqualizerValues, getInstance, isMuteEnabled, isPaused, isSoundNormalizationEnabled, notifyPlayerError, notifyRadioOrPodcastFeedEntryStarted, playCurrentAudioObject, playNextAudioObject, playPreviousAudioObject, seekCurrentAudioObject, setCurrentAudioObjectLength, setCurrentAudioObjectPlayedTime, setPlayListPositionToPlay, stopCurrentAudioObject, volumeDown, volumeUp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MPlayerHandler()
Method Detail |
---|
public boolean isEngineAvailable()
PlayerHandler
isEngineAvailable
in class PlayerHandler
true
if engine is available in the system and can be
used to play, false
otherwiseprotected void pausePlayback()
PlayerHandler
pausePlayback
in class PlayerHandler
protected void resumePlayback()
PlayerHandler
resumePlayback
in class PlayerHandler
protected void startPlayback(AudioObject audioObjectToPlay, AudioObject audioObject)
PlayerHandler
startPlayback
in class PlayerHandler
audioObjectToPlay
- audio object to play. May be cashed to temp dirs or the same
as audioObject.audioObject
- original audio object to update statistics TODO: Change method
signature and add javadocprotected void stopPlayback(boolean userStopped, boolean useFadeAway)
PlayerHandler
stopPlayback
in class PlayerHandler
userStopped
- true
if stopped by user input, false
otherwise.useFadeAway
- if true
- fade away then stop. Stop immediately
otherwise.protected void finishedFadeAway()
protected void setTime(int time)
protected void seekTo(double position)
PlayerHandler
seekTo
in class PlayerHandler
position
- 0-100public void finishPlayer()
PlayerHandler
finishPlayer
in class PlayerHandler
public boolean isEnginePlaying()
PlayerHandler
true
) or not (
false
)
isEnginePlaying
in class PlayerHandler
true
if engine is currently playingpublic void applyMuteState(boolean mute)
PlayerHandler
applyMuteState
in class PlayerHandler
mute
- : enabled (true
) or disabled (false
)public void setVolume(int volume)
PlayerHandler
setVolume
in class PlayerHandler
volume
- 0-100public boolean supportsCapability(PlayerEngineCapability capability)
PlayerHandler
supportsCapability
in class PlayerHandler
true
if engine supports capability or notpublic void applyEqualization(float[] values)
PlayerHandler
applyEqualization
in class PlayerHandler
public float[] transformEqualizerValues(float[] values)
PlayerHandler
transformEqualizerValues
in class PlayerHandler
protected void setCurrentLength(long currentDuration)
protected boolean isPlaybackPaused()
protected void notifyRadioOrPodcastFeedEntry()
protected boolean isMute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |