docs/doc/reference/com/google/android/exoplayer2/source/mediaparser/InputReaderAdapterV30.html
Package com.google.android.exoplayer2.source.mediaparser
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.
Constructors | Constructor | Description |
| --- | --- |
| InputReaderAdapterV30() |
Deprecated.
|
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.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public InputReaderAdapterV30()
Deprecated.
-
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.
-
public void setCurrentPosition(long position)
Deprecated.
Sets the absolute position in the resource from which the wrapped DataReader reads.
-
public long getAndResetSeekPosition()
Deprecated.
Returns the last value passed to seekToPosition(long) and sets the stored value to C.INDEX_UNSET.
-
public void seekToPosition(long position)
Deprecated.
Specified by:seekToPosition in interface MediaParser.SeekableInputReader
-
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
-
public long getPosition()
Deprecated.
Specified by:getPosition in interface MediaParser.InputReader
-
public long getLength()
Deprecated.
Specified by:getLength in interface MediaParser.InputReader