Added in API level 30
MediaParser.SeekMap
public
static
final
class
MediaParser.SeekMap
extends Object
| java.lang.Object | |
| ↳ | android.media.MediaParser.SeekMap |
Maps seek positions to SeekPoints in the stream.
A SeekPoint is a position in the stream from which a player may successfully start
playing media samples.
Summary
Constants | |
|---|---|
int |
UNKNOWN_DURATION
Returned by |
Public methods | |
|---|---|
long
|
getDurationMicros()
Returns the duration of the stream in microseconds or |
Pair<MediaParser.SeekPoint, MediaParser.SeekPoint>
|
getSeekPoints(long timeMicros)
Obtains seek points for the specified seek time in microseconds. |
boolean
|
isSeekable()
Returns whether seeking is supported. |
Inherited methods | |
|---|---|