DefaultCompositeSequenceableLoaderFactory


@UnstableApi
public final class DefaultCompositeSequenceableLoaderFactory implements CompositeSequenceableLoaderFactory


Default implementation of CompositeSequenceableLoaderFactory.

Summary

Public methods

SequenceableLoader
create(
    List<SequenceableLoader> loaders,
    List<List<@C.TrackType Integer>> loaderTrackTypes
)

Creates a composite SequenceableLoader.

SequenceableLoader
createCompositeSequenceableLoader(SequenceableLoader[] loaders)

This method is deprecated.

Use empty for an empty composite loader, or create for a non-empty one.

SequenceableLoader

Returns an empty composite SequenceableLoader, with no delegate loaders.

Public constructors

DefaultCompositeSequenceableLoaderFactory

public DefaultCompositeSequenceableLoaderFactory()

Public methods

create

public SequenceableLoader create(
    List<SequenceableLoader> loaders,
    List<List<@C.TrackType Integer>> loaderTrackTypes
)

Creates a composite SequenceableLoader.

Parameters
List<SequenceableLoader> loaders

The sub-loaders that make up the SequenceableLoader to be built.

List<List<@C.TrackType Integer>> loaderTrackTypes

The track types handled by each entry in loaders. Must be the same as loaders.

Returns
SequenceableLoader

A composite SequenceableLoader that comprises the given loaders.

createCompositeSequenceableLoader

public SequenceableLoader createCompositeSequenceableLoader(SequenceableLoader[] loaders)

empty

public SequenceableLoader empty()

Returns an empty composite SequenceableLoader, with no delegate loaders.