Example usage for android.media MediaDescription getDescription

List of usage examples for android.media MediaDescription getDescription

Introduction

In this page you can find the example usage for android.media MediaDescription getDescription.

Prototype

public @Nullable CharSequence getDescription() 

Source Link

Document

Returns a description suitable for display or null.

Usage

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();
}