Esempio n. 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();
  }
Esempio n. 2
0
 @Override
 public void onPause() {
   super.onPause();
   PlaybackControl.getInstance().unregisterAudioCallback(this);
 }
Esempio n. 3
0
 @Override
 public void onAudioProgressChanged() {
   PlaybackControl.getInstance().getAudioInformation(mInfo);
   updateProgress();
 }
Esempio n. 4
0
 @Override
 public void onResume() {
   super.onResume();
   PlaybackControl.getInstance().registerAudioCallback(this, true);
 }