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 DataSourcecreateDataSource(@com.google.android.exoplayer2.C.DataType int dataType)Deprecated.Creates aDataSourcefor the given data type.
-
-
-
Constructor Detail
-
DefaultHlsDataSourceFactory
public DefaultHlsDataSourceFactory(DataSource.Factory dataSourceFactory)
Deprecated.- Parameters:
dataSourceFactory- TheDataSource.Factoryto use for all data types.
-
-
Method Detail
-
createDataSource
public DataSource createDataSource(@com.google.android.exoplayer2.C.DataType int dataType)
Deprecated.Description copied from interface:HlsDataSourceFactoryCreates aDataSourcefor the given data type.- Specified by:
createDataSourcein interfaceHlsDataSourceFactory- Parameters:
dataType- TheC.DataTypefor which theDataSourcewill be used.- Returns:
- A
DataSourcefor the given data type.
-
-