Package io.agora.mediaplayer
Class ContentFileReader
java.lang.Object
io.agora.mediaplayer.ContentFileReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlonglongintintread(ByteBuffer readByteBuffer) Read file content to ByteBufferlongseek(long pos)
-
Constructor Details
-
ContentFileReader
public ContentFileReader()
-
-
Method Details
-
open
-
getFileSize
public long getFileSize() -
seek
public long seek(long pos) -
closeFile
public void closeFile() -
read
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()
-