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