Class DefaultHlsDataSourceFactory
- java.lang.Object
-
- com.google.android.exoplayer2.source.hls.DefaultHlsDataSourceFactory
-
- All Implemented Interfaces:
HlsDataSourceFactory
@Deprecated public final class DefaultHlsDataSourceFactory extends Object implements HlsDataSourceFactory
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.Default implementation ofHlsDataSourceFactory
.
-
-
Constructor Summary
Constructors Constructor Description DefaultHlsDataSourceFactory(DataSource.Factory dataSourceFactory)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DataSource
createDataSource(@com.google.android.exoplayer2.C.DataType int dataType)
Deprecated.Creates aDataSource
for the given data type.
-
-
-
Constructor Detail
-
DefaultHlsDataSourceFactory
public DefaultHlsDataSourceFactory(DataSource.Factory dataSourceFactory)
Deprecated.- Parameters:
dataSourceFactory
- TheDataSource.Factory
to use for all data types.
-
-
Method Detail
-
createDataSource
public DataSource createDataSource(@com.google.android.exoplayer2.C.DataType int dataType)
Deprecated.Description copied from interface:HlsDataSourceFactory
Creates aDataSource
for the given data type.- Specified by:
createDataSource
in interfaceHlsDataSourceFactory
- Parameters:
dataType
- TheC.DataType
for which theDataSource
will be used.- Returns:
- A
DataSource
for the given data type.
-
-