public final class CompositeSequenceableLoader extends Object implements SequenceableLoader
SequenceableLoader
that encapsulates multiple other SequenceableLoader
s.SequenceableLoader.Callback<T extends SequenceableLoader>
Constructor and Description |
---|
CompositeSequenceableLoader(SequenceableLoader[] loaders) |
Modifier and Type | Method and Description |
---|---|
boolean |
continueLoading(long positionUs)
Attempts to continue loading.
|
long |
getNextLoadPositionUs()
Returns the next load time, or
C.TIME_END_OF_SOURCE if loading has finished. |
public CompositeSequenceableLoader(SequenceableLoader[] loaders)
public long getNextLoadPositionUs()
SequenceableLoader
C.TIME_END_OF_SOURCE
if loading has finished.getNextLoadPositionUs
in interface SequenceableLoader
public boolean continueLoading(long positionUs)
SequenceableLoader
continueLoading
in interface SequenceableLoader
positionUs
- The current playback position.SequenceableLoader.getNextLoadPositionUs()
will return
a different value than prior to the call. False otherwise.