com.evolution.player.ui.musicplayer
Class IMusicPlayerController.MusicPlayerControllerListener

java.lang.Object
  extended by com.evolution.player.ui.musicplayer.IMusicPlayerController.MusicPlayerControllerListener
Enclosing interface:
IMusicPlayerController

public abstract static class IMusicPlayerController.MusicPlayerControllerListener
extends java.lang.Object

A music player controller listener is informed about state changes in the music player.

See Also:
IMusicPlayerController.addPlayListener(MusicPlayerControllerListener)

Constructor Summary
IMusicPlayerController.MusicPlayerControllerListener()
           
 
Method Summary
abstract  void playing(LocalMediaInfo media)
          The music player has started playing the given media.
abstract  void progress(long currentTimeMs, long totalTimeMs)
          currentTimeMs has been played from totalTimeMs of the current song.
abstract  void setPaused(boolean paused)
          The player was paused or resumed.
abstract  void started()
          The music player has been started.
abstract  void stopped()
          The music player has been stopped.
 void volumeChanged(int volume)
          The volume of the player has been changed to the given value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IMusicPlayerController.MusicPlayerControllerListener

public IMusicPlayerController.MusicPlayerControllerListener()
Method Detail

started

public abstract void started()
The music player has been started.


stopped

public abstract void stopped()
The music player has been stopped.


playing

public abstract void playing(LocalMediaInfo media)
The music player has started playing the given media.

Parameters:
media - the played media

progress

public abstract void progress(long currentTimeMs,
                              long totalTimeMs)
currentTimeMs has been played from totalTimeMs of the current song.

Parameters:
currentTimeMs - the current amount of played time in milliseconds
totalTimeMs - the total length of the current song in milliseconds

setPaused

public abstract void setPaused(boolean paused)
The player was paused or resumed.

Parameters:
paused - true if the player was paused, false if the player was resumed.

volumeChanged

public void volumeChanged(int volume)
The volume of the player has been changed to the given value.

Parameters:
volume - the new volume in the range [0, 100]