Class Mp3StreamSeeker
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.mp3.Mp3StreamSeeker
-
-
Constructor Summary
Constructors Constructor Description Mp3StreamSeeker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDuration()booleanisSeekable()longseekAndGetFrameIndex(long timecode, SeekableInputStream inputStream)
-
-
-
Method Detail
-
getDuration
public long getDuration()
- Specified by:
getDurationin interfaceMp3Seeker- Returns:
- The duration of the file in milliseconds. May be an estimate.
-
isSeekable
public boolean isSeekable()
- Specified by:
isSeekablein interfaceMp3Seeker- Returns:
- True if the track is seekable.
-
seekAndGetFrameIndex
public long seekAndGetFrameIndex(long timecode, SeekableInputStream inputStream) throws java.io.IOException- Specified by:
seekAndGetFrameIndexin interfaceMp3Seeker- Parameters:
timecode- The timecode that the seek is requested toinputStream- The input stream to perform the seek on- Returns:
- The index of the frame that the seek was performed to
- Throws:
java.io.IOException- On IO error
-
-