MediaSourceFactorySupplier


@UnstableApi
public interface MediaSourceFactorySupplier extends Supplier


Supplies a MediaSource.Factory.

Summary

Public methods

abstract MediaSourceFactorySupplier

Sets the Cache that will be used by the supplied MediaSource.Factory.

abstract MediaSourceFactorySupplier

Sets the DataSource.Factory that will be used by the supplied MediaSource.Factory.

Inherited methods

From com.google.common.base.Supplier
abstract T
get()

Public methods

setCache

@CanIgnoreReturnValue
abstract MediaSourceFactorySupplier setCache(@Nullable Cache cache)

Sets the Cache that will be used by the supplied MediaSource.Factory.

Returns
MediaSourceFactorySupplier

This supplier, for convenience.

setDataSourceFactory

@CanIgnoreReturnValue
abstract MediaSourceFactorySupplier setDataSourceFactory(@Nullable DataSource.Factory dataSourceFactory)

Sets the DataSource.Factory that will be used by the supplied MediaSource.Factory.

Returns
MediaSourceFactorySupplier

This supplier, for convenience.