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