Back to Exoplayer

CompositeSequenceableLoader (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/CompositeSequenceableLoader.html

latest5.8 KB
Original Source

Package com.google.android.exoplayer2.source

Class CompositeSequenceableLoader

  • java.lang.Object

    • com.google.android.exoplayer2.source.CompositeSequenceableLoader
  • All Implemented Interfaces:SequenceableLoader


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public classCompositeSequenceableLoaderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[SequenceableLoader](SequenceableLoader.html "interface in com.google.android.exoplayer2.source")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

A SequenceableLoader that encapsulates multiple other SequenceableLoaders.

Nested Class Summary

- 

Nested classes/interfaces inherited from interface com.google.android.exoplayer2.source.SequenceableLoader

SequenceableLoader.Callback<T extends SequenceableLoader>

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | protected SequenceableLoader[] | loaders | Deprecated. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | CompositeSequenceableLoader​(SequenceableLoader[] loaders) | Deprecated. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | boolean | continueLoading​(long positionUs) | Deprecated.

Attempts to continue loading. | | long | getBufferedPositionUs() | Deprecated.

Returns an estimate of the position up to which data is buffered. | | long | getNextLoadPositionUs() | Deprecated.

Returns the next load time, or C.TIME_END_OF_SOURCE if loading has finished. | | boolean | isLoading() | Deprecated.

Returns whether the loader is currently loading. | | void | reevaluateBuffer​(long positionUs) | Deprecated.

Re-evaluates the buffer given the playback position. |

- 

Methods inherited from class java.lang.Object

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

Field Detail

- 

loaders

protected final[SequenceableLoader](SequenceableLoader.html "interface in com.google.android.exoplayer2.source")[] loaders

Deprecated.

Constructor Detail

- 

CompositeSequenceableLoader

public CompositeSequenceableLoader​([SequenceableLoader](SequenceableLoader.html "interface in com.google.android.exoplayer2.source")[] loaders)

Deprecated.

Method Detail

- 

getBufferedPositionUs

public final long getBufferedPositionUs()

Deprecated.

Description copied from interface: SequenceableLoader

Returns an estimate of the position up to which data is buffered. Specified by:getBufferedPositionUs in interface SequenceableLoaderReturns:An estimate of the absolute position in microseconds up to which data is buffered, or C.TIME_END_OF_SOURCE if the data is fully buffered.

- 

getNextLoadPositionUs

public final long getNextLoadPositionUs()

Deprecated.

Description copied from interface: SequenceableLoader

Returns the next load time, or C.TIME_END_OF_SOURCE if loading has finished. Specified by:getNextLoadPositionUs in interface SequenceableLoader

- 

reevaluateBuffer

public final void reevaluateBuffer​(long positionUs)

Deprecated.

Description copied from interface: SequenceableLoader

Re-evaluates the buffer given the playback position.

Re-evaluation may discard buffered media or cancel ongoing loads so that media can be re-buffered in a different quality.

Specified by:reevaluateBuffer in interface SequenceableLoaderParameters:positionUs - The current playback position in microseconds. If playback of this period has not yet started, the value will be the starting position in this period minus the duration of any media in previous periods still to be played.

- 

continueLoading

public boolean continueLoading​(long positionUs)

Deprecated.

Description copied from interface: SequenceableLoader

Attempts to continue loading. Specified by:continueLoading in interface SequenceableLoaderParameters:positionUs - The current playback position in microseconds. If playback of the period to which this loader belongs has not yet started, the value will be the starting position in the period minus the duration of any media in previous periods still to be played.Returns:True if progress was made, meaning that SequenceableLoader.getNextLoadPositionUs() will return a different value than prior to the call. False otherwise.

- 

isLoading

public boolean isLoading()

Deprecated.

Description copied from interface: SequenceableLoader

Returns whether the loader is currently loading. Specified by:isLoading in interface SequenceableLoader