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 getDurationMicros() when the duration is unknown.

Public methods

long getDurationMicros()

Returns the duration of the stream in microseconds or UNKNOWN_DURATION if the duration is unknown.

Pair<MediaParser.SeekPointMediaParser.SeekPoint> getSeekPoints(long timeMicros)

Obtains seek points for the specified seek time in microseconds.

boolean isSeekable()

Returns whether seeking is supported.

Inherited methods