MediaSourceFactorySupplier


@UnstableApi
interface MediaSourceFactorySupplier : Supplier


Supplies a MediaSource.Factory.

Summary

Public functions

MediaSourceFactorySupplier!

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

MediaSourceFactorySupplier!

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

Inherited functions

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

Public functions

setCache

@CanIgnoreReturnValue
fun setCache(cache: Cache?): MediaSourceFactorySupplier!

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

Returns
MediaSourceFactorySupplier!

This supplier, for convenience.

setDataSourceFactory

@CanIgnoreReturnValue
fun setDataSourceFactory(dataSourceFactory: DataSource.Factory?): MediaSourceFactorySupplier!

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

Returns
MediaSourceFactorySupplier!

This supplier, for convenience.