Class AssetsFileReader

java.lang.Object
io.agora.mediaplayer.AssetsFileReader

public class AssetsFileReader extends Object
  • Field Details

  • Constructor Details

    • AssetsFileReader

      public AssetsFileReader()
  • Method Details

    • open

      public int open(String assetFilePath)
    • getFileSize

      public long getFileSize()
    • seek

      public long seek(long pos)
    • closeFile

      public void closeFile()
    • read

      public int read(ByteBuffer readByteBuffer)
      Read file content to ByteBuffer
      Parameters:
      readByteBuffer - The buffer into which bytes are to be transferred
      Returns:
      The number of bytes read, possibly zero, or -1 if the channel has reached end-of-stream, or -2 if other errors
    • getCurrentPosition

      public long getCurrentPosition()