List of usage examples for android.media MediaDescription getDescription
public @Nullable CharSequence getDescription()
From source file:org.opensilk.video.data.MediaDescriptionUtil.java
public static MediaDescription.Builder newBuilder(MediaDescription description) { MediaDescription.Builder bob = new MediaDescription.Builder().setIconUri(description.getIconUri()) .setMediaId(description.getMediaId()).setExtras(description.getExtras()) .setSubtitle(description.getSubtitle()).setTitle(description.getTitle()) .setDescription(description.getDescription()); if (VersionUtils.hasApi23()) { bob.setMediaUri(description.getMediaUri()); }/*from w ww . j a v a2s . c o m*/ return bob; }
From source file:org.opensilk.video.data.VideoDescInfo.java
public static VideoDescInfo from(MediaDescription description) { return builder().setTitle(description.getTitle()).setSubtitle(description.getSubtitle()) .setOverview(description.getDescription()).build(); }