Back to Exoplayer

HlsDataSourceFactory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/hls/HlsDataSourceFactory.html

latest2.0 KB
Original Source

Package com.google.android.exoplayer2.source.hls

Interface HlsDataSourceFactory

  • All Known Implementing Classes:DefaultHlsDataSourceFactory

[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceHlsDataSourceFactory

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.

Creates DataSources for HLS playlists, encryption and media chunks.

Method Summary

All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | DataSource | createDataSource​(@com.google.android.exoplayer2.C.DataType int dataType) | Deprecated.

Creates a DataSource for the given data type. |

Method Detail

- 

createDataSource

[DataSource](../../upstream/DataSource.html "interface in com.google.android.exoplayer2.upstream")createDataSource​(@com.google.android.exoplayer2.C.DataType int dataType)

Deprecated.

Creates a DataSource for the given data type. Parameters:dataType - The C.DataType for which the DataSource will be used.Returns:A DataSource for the given data type.