Class CacheDataSource

  • All Implemented Interfaces:
    DataReader, DataSource

    @Deprecated
    public final class CacheDataSource
    extends Object
    implements DataSource
    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.
    A DataSource that reads and writes a Cache. Requests are fulfilled from the cache when possible. When data is not cached it is requested from an upstream DataSource and written into the cache.