예제 #1
0
    public void updateMediaInfoView(DlnaMediaModel mediaInfo) {
      setcurTime(0);
      setTotalTime(0);
      setSeekbarMax(100);
      setSeekbarProgress(0);

      mTVSongName.setText(mediaInfo.getTitle());
      mTVArtist.setText(mediaInfo.getArtist());
      mTVAlbum.setText(mediaInfo.getAlbum());
    }
예제 #2
0
 public static boolean isImageItem(DlnaMediaModel item) {
   String objectClass = item.getObjectClass();
   if (objectClass.contains(DLNA_OBJECTCLASS_PHOTOID)) {
     return true;
   }
   return false;
 }
예제 #3
0
  private void refreshIntent(Intent intent) {
    log.e("refreshIntent");
    removeExitMessage();
    if (intent != null) {
      mMediaInfo = DlnaMediaModelFactory.createFromIntent(intent);
    }

    mUIManager.updateMediaInfoView(mMediaInfo);
    mPlayerEngineImpl.playMedia(mMediaInfo);
    LoaderHelper.syncDownLoadDrawable(mMediaInfo.getAlbumUri(), mHandler, LOAD_DRAWABLE_COMPLETE);

    mUIManager.showPrepareLoadView(true);
    mUIManager.showLoadView(false);
    mUIManager.showControlView(false);
  }