public virtual void seek(int destination) { // Stores the requested position, it will be used if player is not yet connected. if (mPosition == destination) { return; } mPosition = destination; if (mPlayer != null) { mPlayer.seek(destination); State = PlayerState.BUFFERING; } }
public virtual void seek(int destination) { if (mPosition == destination) { return; } // Store the requested position, it will be used if player // is not yet connected. mPosition = destination; if (mPlayer != null) { mPlayer.seek(destination); State = PlayerState.BUFFERING; } Log.d("MusicPlayer", "Seek: " + destination + ", " + mPlayer); }