Remove inlined, fully qualified class name

PiperOrigin-RevId: 400742025
This commit is contained in:
bachinger 2021-10-04 17:34:45 +01:00 committed by Christos Tsilopoulos
parent 7a2c7c3297
commit 47573d4575

View File

@ -27,6 +27,7 @@ import androidx.media2.common.FileMediaItem;
import androidx.media2.common.UriMediaItem; import androidx.media2.common.UriMediaItem;
import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.MediaItem; import com.google.android.exoplayer2.MediaItem;
import com.google.android.exoplayer2.MediaMetadata;
import com.google.android.exoplayer2.util.Assertions; import com.google.android.exoplayer2.util.Assertions;
/** /**
@ -85,8 +86,7 @@ public class DefaultMediaItemConverter implements MediaItemConverter {
return new MediaItem.Builder() return new MediaItem.Builder()
.setUri(uri) .setUri(uri)
.setMediaId(mediaId != null ? mediaId : MediaItem.DEFAULT_MEDIA_ID) .setMediaId(mediaId != null ? mediaId : MediaItem.DEFAULT_MEDIA_ID)
.setMediaMetadata( .setMediaMetadata(new MediaMetadata.Builder().setTitle(title).build())
new com.google.android.exoplayer2.MediaMetadata.Builder().setTitle(title).build())
.setTag(media2MediaItem) .setTag(media2MediaItem)
.setClipStartPositionMs(startPositionMs) .setClipStartPositionMs(startPositionMs)
.setClipEndPositionMs(endPositionMs) .setClipEndPositionMs(endPositionMs)