Interface Mp3Seeker
-
- All Known Implementing Classes:
Mp3ConstantRateSeeker,Mp3StreamSeeker,Mp3XingSeeker
public interface Mp3SeekerA seeking handler for MP3 files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetDuration()booleanisSeekable()longseekAndGetFrameIndex(long timecode, SeekableInputStream inputStream)
-
-
-
Method Detail
-
getDuration
long getDuration()
- Returns:
- The duration of the file in milliseconds. May be an estimate.
-
isSeekable
boolean isSeekable()
- Returns:
- True if the track is seekable.
-
seekAndGetFrameIndex
long seekAndGetFrameIndex(long timecode, SeekableInputStream inputStream) throws java.io.IOException- 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
-
-