Ejemplo n.º 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());
    }
Ejemplo n.º 2
0
 public static boolean isImageItem(DlnaMediaModel item) {
   String objectClass = item.getObjectClass();
   if (objectClass.contains(DLNA_OBJECTCLASS_PHOTOID)) {
     return true;
   }
   return false;
 }
Ejemplo n.º 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);
  }