DefaultHlsDataSourceFactory


@UnstableApi
class DefaultHlsDataSourceFactory : HlsDataSourceFactory


Default implementation of HlsDataSourceFactory.

Summary

Public constructors

Public functions

DataSource!

Creates a DataSource for the given data type.

Public constructors

DefaultHlsDataSourceFactory

DefaultHlsDataSourceFactory(dataSourceFactory: DataSource.Factory!)
Parameters
dataSourceFactory: DataSource.Factory!

The DataSource.Factory to use for all data types.

Public functions

createDataSource

fun createDataSource(@C.DataType dataType: Int): DataSource!

Creates a DataSource for the given data type.

Parameters
@C.DataType dataType: Int

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

Returns
DataSource!

A DataSource for the given data type.