Interface HlsDataSourceFactory

  • All Known Implementing Classes:
    DefaultHlsDataSourceFactory

    @Deprecated
    public interface HlsDataSourceFactory
    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 Detail

      • createDataSource

        DataSource 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.