DefaultHlsDataSourceFactory


@UnstableApi
public final class DefaultHlsDataSourceFactory implements HlsDataSourceFactory


Default implementation of HlsDataSourceFactory.

Summary

Public constructors

Public methods

DataSource

Creates a DataSource for the given data type.

Public constructors

DefaultHlsDataSourceFactory

public DefaultHlsDataSourceFactory(DataSource.Factory dataSourceFactory)
Parameters
DataSource.Factory dataSourceFactory

The DataSource.Factory to use for all data types.

Public methods

createDataSource

public DataSource createDataSource(@C.DataType int dataType)

Creates a DataSource for the given data type.

Parameters
@C.DataType int dataType

The C.DataType for which the DataSource will be used.

Returns
DataSource

A DataSource for the given data type.