public final class DefaultHlsDataSourceFactory extends java.lang.Object implements HlsDataSourceFactory
HlsDataSourceFactory.| Constructor and Description |
|---|
DefaultHlsDataSourceFactory(com.google.android.exoplayer2.upstream.DataSource.Factory dataSourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
com.google.android.exoplayer2.upstream.DataSource |
createDataSource(int dataType)
Creates a
DataSource for the given data type. |
public DefaultHlsDataSourceFactory(com.google.android.exoplayer2.upstream.DataSource.Factory dataSourceFactory)
dataSourceFactory - The DataSource.Factory to use for all data types.public com.google.android.exoplayer2.upstream.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.