docs/doc/reference/com/google/android/exoplayer2/source/hls/DefaultHlsDataSourceFactory.html
Package com.google.android.exoplayer2.source.hls
All Implemented Interfaces:HlsDataSourceFactory
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classDefaultHlsDataSourceFactoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[HlsDataSourceFactory](HlsDataSourceFactory.html "interface in com.google.android.exoplayer2.source.hls")
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 of HlsDataSourceFactory.
Constructors | Constructor | Description |
| --- | --- |
| DefaultHlsDataSourceFactory(DataSource.Factory dataSourceFactory) |
Deprecated.
|
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 a DataSource for the given data type.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public DefaultHlsDataSourceFactory([DataSource.Factory](../../upstream/DataSource.Factory.html "interface in com.google.android.exoplayer2.upstream")dataSourceFactory)
Deprecated.
Parameters:dataSourceFactory - The DataSource.Factory to use for all data types.
-
public[DataSource](../../upstream/DataSource.html "interface in com.google.android.exoplayer2.upstream")createDataSource(@com.google.android.exoplayer2.C.DataType int dataType)
Deprecated.
Description copied from interface: HlsDataSourceFactory
Creates a DataSource for the given data type.
Specified by:createDataSource in interface HlsDataSourceFactoryParameters:dataType - The C.DataType for which the DataSource will be used.Returns:A DataSource for the given data type.