public class

SeekMap.Unseekable

extends java.lang.Object

implements SeekMap

 java.lang.Object

↳androidx.media3.extractor.SeekMap.Unseekable

Overview

A SeekMap that does not support seeking.

Summary

Constructors
publicUnseekable(long durationUs)

publicUnseekable(long durationUs, long startPosition)

Methods
public longgetDurationUs()

public SeekMap.SeekPointsgetSeekPoints(long timeUs)

public booleanisSeekable()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Unseekable(long durationUs)

Parameters:

durationUs: The duration of the stream in microseconds, or C.TIME_UNSET if the duration is unknown.

public Unseekable(long durationUs, long startPosition)

Parameters:

durationUs: The duration of the stream in microseconds, or C.TIME_UNSET if the duration is unknown.
startPosition: The position (byte offset) of the start of the media.

Methods

public boolean isSeekable()

public long getDurationUs()

public SeekMap.SeekPoints getSeekPoints(long timeUs)