Back to Exoplayer

SsChunkSource.Factory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/smoothstreaming/SsChunkSource.Factory.html

latest2.8 KB
Original Source

Package com.google.android.exoplayer2.source.smoothstreaming

Interface SsChunkSource.Factory

  • All Known Implementing Classes:DefaultSsChunkSource.FactoryEnclosing interface:SsChunkSource

public static interfaceSsChunkSource.Factory

Factory for SsChunkSources.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | SsChunkSource | createChunkSource​(LoaderErrorThrower manifestLoaderErrorThrower, SsManifest manifest, int streamElementIndex, ExoTrackSelection trackSelection, TransferListener transferListener, CmcdConfiguration cmcdConfiguration) | Creates a new SsChunkSource. |

Method Detail

- 

createChunkSource

[SsChunkSource](SsChunkSource.html "interface in com.google.android.exoplayer2.source.smoothstreaming")createChunkSource​([LoaderErrorThrower](../../upstream/LoaderErrorThrower.html "interface in com.google.android.exoplayer2.upstream")manifestLoaderErrorThrower,[SsManifest](manifest/SsManifest.html "class in com.google.android.exoplayer2.source.smoothstreaming.manifest")manifest,
                                int streamElementIndex,[ExoTrackSelection](../../trackselection/ExoTrackSelection.html "interface in com.google.android.exoplayer2.trackselection")trackSelection,
                                @Nullable[TransferListener](../../upstream/TransferListener.html "interface in com.google.android.exoplayer2.upstream")transferListener,
                                @Nullable[CmcdConfiguration](../../upstream/CmcdConfiguration.html "class in com.google.android.exoplayer2.upstream")cmcdConfiguration)

Creates a new SsChunkSource. 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 - The CmcdConfiguration for this chunk source.Returns:The created SsChunkSource.