Back to Exoplayer

InputReaderAdapterV30 (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/mediaparser/InputReaderAdapterV30.html

latest4.9 KB
Original Source

Package com.google.android.exoplayer2.source.mediaparser

Class InputReaderAdapterV30

  • java.lang.Object

    • com.google.android.exoplayer2.source.mediaparser.InputReaderAdapterV30
  • All Implemented Interfaces:MediaParser.InputReader, MediaParser.SeekableInputReader


@RequiresApi(30)[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classInputReaderAdapterV30extends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[MediaParser.SeekableInputReader](https://developer.android.com/reference/android/media/MediaParser.SeekableInputReader.html "class or interface in android.media")

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.

MediaParser.SeekableInputReader implementation wrapping a DataReader.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | InputReaderAdapterV30() | Deprecated. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | long | getAndResetSeekPosition() | Deprecated.

Returns the last value passed to seekToPosition(long) and sets the stored value to C.INDEX_UNSET. | | long | getLength() | Deprecated. | | long | getPosition() | Deprecated. | | int | read​(byte[] bytes, int offset, int readLength) | Deprecated. | | void | seekToPosition​(long position) | Deprecated. | | void | setCurrentPosition​(long position) | Deprecated.

Sets the absolute position in the resource from which the wrapped DataReader reads. | | void | setDataReader​(DataReader dataReader, long length) | Deprecated.

Sets the wrapped DataReader. |

- 

Methods inherited from class java.lang.Object

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

Constructor Detail

- 

InputReaderAdapterV30

public InputReaderAdapterV30()

Deprecated.

Method Detail

- 

setDataReader

public void setDataReader​([DataReader](../../upstream/DataReader.html "interface in com.google.android.exoplayer2.upstream")dataReader,
                          long length)

Deprecated.

Sets the wrapped DataReader. Parameters:dataReader - The DataReader to wrap.length - The length of the resource from which dataReader reads.

- 

setCurrentPosition

public void setCurrentPosition​(long position)

Deprecated.

Sets the absolute position in the resource from which the wrapped DataReader reads.

- 

getAndResetSeekPosition

public long getAndResetSeekPosition()

Deprecated.

Returns the last value passed to seekToPosition(long) and sets the stored value to C.INDEX_UNSET.

- 

seekToPosition

public void seekToPosition​(long position)

Deprecated. Specified by:seekToPosition in interface MediaParser.SeekableInputReader

- 

read

public int read​(byte[] bytes,
                int offset,
                int readLength)
         throws[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")

Deprecated. Specified by:read in interface MediaParser.InputReaderThrows:IOException

- 

getPosition

public long getPosition()

Deprecated. Specified by:getPosition in interface MediaParser.InputReader

- 

getLength

public long getLength()

Deprecated. Specified by:getLength in interface MediaParser.InputReader