Example #1
0
  @Override
  public void onAudioInfoChanged() {
    PlaybackControl.getInstance().getAudioInformation(mInfo);
    mImageView.setImageBitmap(PlaybackControl.getInstance().getAudioCoverArt());
    mTextTrack.setText(mInfo.mTrackName);
    mTextAlbum.setText(mInfo.mTrackAlbum);
    mTextArtist.setText(mInfo.mTrackArtist);

    updateProgress();
  }
Example #2
0
 @Override
 public void onPause() {
   super.onPause();
   PlaybackControl.getInstance().unregisterAudioCallback(this);
 }
Example #3
0
 @Override
 public void onAudioProgressChanged() {
   PlaybackControl.getInstance().getAudioInformation(mInfo);
   updateProgress();
 }
Example #4
0
 @Override
 public void onResume() {
   super.onResume();
   PlaybackControl.getInstance().registerAudioCallback(this, true);
 }