Class InputReaderAdapterV30
- java.lang.Object
-
- com.google.android.exoplayer2.source.mediaparser.InputReaderAdapterV30
-
- All Implemented Interfaces:
MediaParser.InputReader
,MediaParser.SeekableInputReader
@RequiresApi(30) @Deprecated public final class InputReaderAdapterV30 extends Object implements MediaParser.SeekableInputReader
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 aDataReader
.
-
-
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 toseekToPosition(long)
and sets the stored value toC.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 wrappedDataReader
reads.void
setDataReader(DataReader dataReader, long length)
Deprecated.Sets the wrappedDataReader
.
-
-
-
Method Detail
-
setDataReader
public void setDataReader(DataReader dataReader, long length)
Deprecated.Sets the wrappedDataReader
.- Parameters:
dataReader
- TheDataReader
to wrap.length
- The length of the resource from whichdataReader
reads.
-
setCurrentPosition
public void setCurrentPosition(long position)
Deprecated.Sets the absolute position in the resource from which the wrappedDataReader
reads.
-
getAndResetSeekPosition
public long getAndResetSeekPosition()
Deprecated.Returns the last value passed toseekToPosition(long)
and sets the stored value toC.INDEX_UNSET
.
-
seekToPosition
public void seekToPosition(long position)
Deprecated.- Specified by:
seekToPosition
in interfaceMediaParser.SeekableInputReader
-
read
public int read(byte[] bytes, int offset, int readLength) throws IOException
Deprecated.- Specified by:
read
in interfaceMediaParser.InputReader
- Throws:
IOException
-
getPosition
public long getPosition()
Deprecated.- Specified by:
getPosition
in interfaceMediaParser.InputReader
-
getLength
public long getLength()
Deprecated.- Specified by:
getLength
in interfaceMediaParser.InputReader
-
-