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