Class DefaultMediaItemConverter
- java.lang.Object
-
- com.google.android.exoplayer2.ext.cast.DefaultMediaItemConverter
-
- All Implemented Interfaces:
MediaItemConverter
@Deprecated public final class DefaultMediaItemConverter extends Object implements MediaItemConverter
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.DefaultMediaItemConverter
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultMediaItemConverter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MediaItem
toMediaItem(com.google.android.gms.cast.MediaQueueItem mediaQueueItem)
Deprecated.Converts aMediaQueueItem
to aMediaItem
.com.google.android.gms.cast.MediaQueueItem
toMediaQueueItem(MediaItem mediaItem)
Deprecated.Converts aMediaItem
to aMediaQueueItem
.
-
-
-
Method Detail
-
toMediaItem
public MediaItem toMediaItem(com.google.android.gms.cast.MediaQueueItem mediaQueueItem)
Deprecated.Description copied from interface:MediaItemConverter
Converts aMediaQueueItem
to aMediaItem
.- Specified by:
toMediaItem
in interfaceMediaItemConverter
- Parameters:
mediaQueueItem
- TheMediaQueueItem
.- Returns:
- The equivalent
MediaItem
.
-
toMediaQueueItem
public com.google.android.gms.cast.MediaQueueItem toMediaQueueItem(MediaItem mediaItem)
Deprecated.Description copied from interface:MediaItemConverter
Converts aMediaItem
to aMediaQueueItem
.- Specified by:
toMediaQueueItem
in interfaceMediaItemConverter
- Parameters:
mediaItem
- TheMediaItem
.- Returns:
- An equivalent
MediaQueueItem
.
-
-