protected final class

DefaultDashChunkSource.RepresentationHolder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.dash.DefaultDashChunkSource.RepresentationHolder

Overview

Holds information about a snapshot of a single Representation.

Summary

Fields
public final Representationrepresentation

public final DashSegmentIndexsegmentIndex

public final BaseUrlselectedBaseUrl

Methods
public longgetFirstAvailableSegmentNum(long nowUnixTimeUs)

public longgetFirstSegmentNum()

public longgetLastAvailableSegmentNum(long nowUnixTimeUs)

public longgetSegmentCount()

public longgetSegmentEndTimeUs(long segmentNum)

public longgetSegmentNum(long positionUs)

public longgetSegmentStartTimeUs(long segmentNum)

public RangedUrigetSegmentUrl(long segmentNum)

public booleanisSegmentAvailableAtFullNetworkSpeed(long segmentNum, long nowPeriodTimeUs)

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

Fields

public final Representation representation

public final BaseUrl selectedBaseUrl

public final DashSegmentIndex segmentIndex

Methods

public long getFirstSegmentNum()

public long getFirstAvailableSegmentNum(long nowUnixTimeUs)

public long getSegmentCount()

public long getSegmentStartTimeUs(long segmentNum)

public long getSegmentEndTimeUs(long segmentNum)

public long getSegmentNum(long positionUs)

public RangedUri getSegmentUrl(long segmentNum)

public long getLastAvailableSegmentNum(long nowUnixTimeUs)

public boolean isSegmentAvailableAtFullNetworkSpeed(long segmentNum, long nowPeriodTimeUs)