Back to Exoplayer

DefaultHlsDataSourceFactory (ExoPlayer library)

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

latest3.4 KB
Original Source

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

Class DefaultHlsDataSourceFactory

  • java.lang.Object

    • com.google.android.exoplayer2.source.hls.DefaultHlsDataSourceFactory
  • All Implemented Interfaces:HlsDataSourceFactory


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classDefaultHlsDataSourceFactoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[HlsDataSourceFactory](HlsDataSourceFactory.html "interface in com.google.android.exoplayer2.source.hls")

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.

Default implementation of HlsDataSourceFactory.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | DefaultHlsDataSourceFactory​(DataSource.Factory dataSourceFactory) | Deprecated. |

Method Summary

All Methods Instance Methods Concrete 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. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

DefaultHlsDataSourceFactory

public DefaultHlsDataSourceFactory​([DataSource.Factory](../../upstream/DataSource.Factory.html "interface in com.google.android.exoplayer2.upstream")dataSourceFactory)

Deprecated. Parameters:dataSourceFactory - The DataSource.Factory to use for all data types.

Method Detail

- 

createDataSource

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

Deprecated.

Description copied from interface: HlsDataSourceFactory

Creates a DataSource for the given data type. Specified by:createDataSource in interface HlsDataSourceFactoryParameters:dataType - The C.DataType for which the DataSource will be used.Returns:A DataSource for the given data type.