com.evolution.player.ui.musicplayer
Interface MusicPlayer.IStateCallback

Enclosing class:
MusicPlayer

public static interface MusicPlayer.IStateCallback

A state callback is used by the player to notify the music player controller about state changes.


Method Summary
 void notifyFinished()
          Notify the controller that the playing of the media has ended.
 void notifyProgress(long currentTimeMs, long totalTimeMs)
          Notify the controller that some amount of the media has been played.
 

Method Detail

notifyFinished

void notifyFinished()
Notify the controller that the playing of the media has ended.


notifyProgress

void notifyProgress(long currentTimeMs,
                    long totalTimeMs)
Notify the controller that some amount of the media has been played.

Parameters:
currentTimeMs - the current amount of time which has been played in milliseconds
totalTimeMs - the total length of the media in milliseconds, or -1 if unknown