com.bff.music
Interface MusicPlayer
- All Known Implementing Classes:
- AbstractMusicPlayer, MPDBasicPlayer, MusicPlayerMPD
public interface MusicPlayer
start
void start(Song song)
throws PlayerException
- Throws:
PlayerException
stop
void stop()
throws PlayerException
- Throws:
PlayerException
getCurrentSong
Song getCurrentSong()
throws PlayerException
- Throws:
PlayerException
setCurrentSong
void setCurrentSong(Song song)
pausePlay
void pausePlay()
throws PlayerException
- Throws:
PlayerException
resumePlay
void resumePlay()
throws PlayerException
- Throws:
PlayerException
getElapsedTrackTime
long getElapsedTrackTime()
updateMusic
void updateMusic()
throws PlayerException
- Throws:
PlayerException
setVolume
void setVolume(int vol)
throws PlayerException
- Throws:
PlayerException
getVolume
int getVolume()
getCurrentBitrate
int getCurrentBitrate()
seek
void seek(long seconds)
throws PlayerException
- Throws:
PlayerException
isPlaying
boolean isPlaying()
playNext
void playNext()
throws PlayerException
- Throws:
PlayerException
playPrevious
void playPrevious()
throws PlayerException
- Throws:
PlayerException