Class PriorityDataSource.Factory
- java.lang.Object
-
- com.google.android.exoplayer2.upstream.PriorityDataSource.Factory
-
- All Implemented Interfaces:
DataSource.Factory
- Enclosing class:
- PriorityDataSource
public static final class PriorityDataSource.Factory extends Object implements DataSource.Factory
DataSource.Factory
forPriorityDataSource
instances.
-
-
Constructor Summary
Constructors Constructor Description Factory(DataSource.Factory upstreamFactory, PriorityTaskManager priorityTaskManager, int priority)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PriorityDataSource
createDataSource()
Creates aDataSource
instance.
-
-
-
Constructor Detail
-
Factory
public Factory(DataSource.Factory upstreamFactory, PriorityTaskManager priorityTaskManager, int priority)
Creates an instance.- Parameters:
upstreamFactory
- ADataSource.Factory
that provides upstreamDataSources
forPriorityDataSource
instances created by the factory.priorityTaskManager
- ThePriorityTaskManager
to which tasks usingPriorityDataSource
instances created by this factory will be registered.priority
- The priority of the tasks usingPriorityDataSource
instances created by this factory.
-
-
Method Detail
-
createDataSource
public PriorityDataSource createDataSource()
Description copied from interface:DataSource.Factory
Creates aDataSource
instance.- Specified by:
createDataSource
in interfaceDataSource.Factory
-
-