Back to Exoplayer

DefaultSsChunkSource.Factory (ExoPlayer library)

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

latest3.9 KB
Original Source

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

Class DefaultSsChunkSource.Factory

  • java.lang.Object

    • com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource.Factory
  • All Implemented Interfaces:SsChunkSource.FactoryEnclosing class:DefaultSsChunkSource


public static final classDefaultSsChunkSource.Factoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[SsChunkSource.Factory](SsChunkSource.Factory.html "interface in com.google.android.exoplayer2.source.smoothstreaming")

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 new SsChunkSource. |

- 

Methods inherited from class java.lang.Object

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

Constructor Detail

- 

Factory

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

Method Detail

- 

createChunkSource

public[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)

Description copied from interface: SsChunkSource.Factory

Creates a new SsChunkSource. Specified by:createChunkSource in interface SsChunkSource.FactoryParameters: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.