Interface MediaItemConverter

  • All Known Implementing Classes:
    DefaultMediaItemConverter

    @Deprecated
    public interface 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.
    Converts between Media2 MediaItem and ExoPlayer MediaItem.
    • Method Detail

      • convertToExoPlayerMediaItem

        MediaItem convertToExoPlayerMediaItem​(androidx.media2.common.MediaItem media2MediaItem)
        Deprecated.
        Converts a Media2 MediaItem to an ExoPlayer MediaItem.
      • convertToMedia2MediaItem

        androidx.media2.common.MediaItem convertToMedia2MediaItem​(MediaItem exoPlayerMediaItem)
        Deprecated.
        Converts an ExoPlayer MediaItem to a Media2 MediaItem.