Class DefaultSsChunkSource.Factory
- java.lang.Object
-
- com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource.Factory
-
- All Implemented Interfaces:
SsChunkSource.Factory
- Enclosing class:
- DefaultSsChunkSource
public static final class DefaultSsChunkSource.Factory extends Object implements SsChunkSource.Factory
-
-
Constructor Summary
Constructors Constructor Description Factory(DataSource.Factory dataSourceFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SsChunkSource
createChunkSource(LoaderErrorThrower manifestLoaderErrorThrower, SsManifest manifest, int streamElementIndex, ExoTrackSelection trackSelection, TransferListener transferListener, CmcdConfiguration cmcdConfiguration)
Creates a newSsChunkSource
.
-
-
-
Constructor Detail
-
Factory
public Factory(DataSource.Factory dataSourceFactory)
-
-
Method Detail
-
createChunkSource
public SsChunkSource createChunkSource(LoaderErrorThrower manifestLoaderErrorThrower, SsManifest manifest, int streamElementIndex, ExoTrackSelection trackSelection, @Nullable TransferListener transferListener, @Nullable CmcdConfiguration cmcdConfiguration)
Description copied from interface:SsChunkSource.Factory
Creates a newSsChunkSource
.- Specified by:
createChunkSource
in interfaceSsChunkSource.Factory
- Parameters:
manifestLoaderErrorThrower
- Throws errors affecting loading of manifests.manifest
- The initial manifest.streamElementIndex
- The index of the corresponding stream element in the manifest.trackSelection
- The track selection.transferListener
- The transfer listener which should be informed of any data transfers. May be null if no listener is available.cmcdConfiguration
- TheCmcdConfiguration
for this chunk source.- Returns:
- The created
SsChunkSource
.
-
-