Back to Exoplayer

FakeChunkSource.Factory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/testutil/FakeChunkSource.Factory.html

latest2.9 KB
Original Source

Package com.google.android.exoplayer2.testutil

Class FakeChunkSource.Factory


public static classFakeChunkSource.Factoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

Factory for a FakeChunkSource.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | protected FakeAdaptiveDataSet.Factory | dataSetFactory | | | protected FakeDataSource.Factory | dataSourceFactory | |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | Factory​(FakeAdaptiveDataSet.Factory dataSetFactory, FakeDataSource.Factory dataSourceFactory) | |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | FakeChunkSource | createChunkSource​(ExoTrackSelection trackSelection, long durationUs, TransferListener transferListener) | |

- 

Methods inherited from class java.lang.Object

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

Field Detail

- 

dataSetFactory

protected final[FakeAdaptiveDataSet.Factory](FakeAdaptiveDataSet.Factory.html "class in com.google.android.exoplayer2.testutil")dataSetFactory
- 

dataSourceFactory

protected final[FakeDataSource.Factory](FakeDataSource.Factory.html "class in com.google.android.exoplayer2.testutil")dataSourceFactory

Constructor Detail

- 

Factory

public Factory​([FakeAdaptiveDataSet.Factory](FakeAdaptiveDataSet.Factory.html "class in com.google.android.exoplayer2.testutil")dataSetFactory,[FakeDataSource.Factory](FakeDataSource.Factory.html "class in com.google.android.exoplayer2.testutil")dataSourceFactory)

Method Detail

- 

createChunkSource

public[FakeChunkSource](FakeChunkSource.html "class in com.google.android.exoplayer2.testutil")createChunkSource​([ExoTrackSelection](../trackselection/ExoTrackSelection.html "interface in com.google.android.exoplayer2.trackselection")trackSelection,
                                         long durationUs,
                                         @Nullable[TransferListener](../upstream/TransferListener.html "interface in com.google.android.exoplayer2.upstream")transferListener)