Class ResolvingDataSource.Factory
- java.lang.Object
-
- com.google.android.exoplayer2.upstream.ResolvingDataSource.Factory
-
- All Implemented Interfaces:
DataSource.Factory
- Enclosing class:
- ResolvingDataSource
public static final class ResolvingDataSource.Factory extends Object implements DataSource.Factory
DataSource.Factory
forResolvingDataSource
instances.
-
-
Constructor Summary
Constructors Constructor Description Factory(DataSource.Factory upstreamFactory, ResolvingDataSource.Resolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvingDataSource
createDataSource()
Creates aDataSource
instance.
-
-
-
Constructor Detail
-
Factory
public Factory(DataSource.Factory upstreamFactory, ResolvingDataSource.Resolver resolver)
- Parameters:
upstreamFactory
- The wrappedDataSource.Factory
for handling resolvedDataSpecs
.resolver
- TheResolvingDataSource.Resolver
to resolve theDataSpecs
.
-
-
Method Detail
-
createDataSource
public ResolvingDataSource createDataSource()
Description copied from interface:DataSource.Factory
Creates aDataSource
instance.- Specified by:
createDataSource
in interfaceDataSource.Factory
-
-