public final class DefaultHlsDataSourceFactory extends Object implements HlsDataSourceFactory
HlsDataSourceFactory.| Constructor and Description |
|---|
DefaultHlsDataSourceFactory(DataSource.Factory dataSourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
createDataSource(int dataType)
Creates a
DataSource for the given data type. |
public DefaultHlsDataSourceFactory(DataSource.Factory dataSourceFactory)
dataSourceFactory - The DataSource.Factory to use for all data types.public DataSource createDataSource(int dataType)
HlsDataSourceFactoryDataSource for the given data type.createDataSource in interface HlsDataSourceFactorydataType - The data type for which the DataSource will be used. One of C
.DATA_TYPE_* constants.DataSource for the given data type.