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.SeekableInputReaderimplementation wrapping aDataReader.
-
-
Constructor Summary
Constructors Constructor Description InputReaderAdapterV30()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetAndResetSeekPosition()Deprecated.Returns the last value passed toseekToPosition(long)and sets the stored value toC.INDEX_UNSET.longgetLength()Deprecated.longgetPosition()Deprecated.intread(byte[] bytes, int offset, int readLength)Deprecated.voidseekToPosition(long position)Deprecated.voidsetCurrentPosition(long position)Deprecated.Sets the absolute position in the resource from which the wrappedDataReaderreads.voidsetDataReader(DataReader dataReader, long length)Deprecated.Sets the wrappedDataReader.
-
-
-
Method Detail
-
setDataReader
public void setDataReader(DataReader dataReader, long length)
Deprecated.Sets the wrappedDataReader.- Parameters:
dataReader- TheDataReaderto wrap.length- The length of the resource from whichdataReaderreads.
-
setCurrentPosition
public void setCurrentPosition(long position)
Deprecated.Sets the absolute position in the resource from which the wrappedDataReaderreads.
-
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:
seekToPositionin interfaceMediaParser.SeekableInputReader
-
read
public int read(byte[] bytes, int offset, int readLength) throws IOExceptionDeprecated.- Specified by:
readin interfaceMediaParser.InputReader- Throws:
IOException
-
getPosition
public long getPosition()
Deprecated.- Specified by:
getPositionin interfaceMediaParser.InputReader
-
getLength
public long getLength()
Deprecated.- Specified by:
getLengthin interfaceMediaParser.InputReader
-
-