DefaultDashChunkSource.RepresentationHolder


protected final class DefaultDashChunkSource.RepresentationHolder


Holds information about a snapshot of a single Representation.

Summary

Public methods

long
getFirstAvailableSegmentNum(long nowUnixTimeUs)
long
long
getLastAvailableSegmentNum(long nowUnixTimeUs)
long
long
getSegmentEndTimeUs(long segmentNum)
long
getSegmentNum(long positionUs)
long
getSegmentStartTimeUs(long segmentNum)
RangedUri
getSegmentUrl(long segmentNum)
boolean
isSegmentAvailableAtFullNetworkSpeed(
    long segmentNum,
    long nowPeriodTimeUs
)

Public fields

representation

public final Representation representation

segmentIndex

public final @Nullable DashSegmentIndex segmentIndex

selectedBaseUrl

public final BaseUrl selectedBaseUrl

Public methods

getFirstAvailableSegmentNum

public long getFirstAvailableSegmentNum(long nowUnixTimeUs)

getFirstSegmentNum

public long getFirstSegmentNum()

getLastAvailableSegmentNum

public long getLastAvailableSegmentNum(long nowUnixTimeUs)

getSegmentCount

public long getSegmentCount()

getSegmentEndTimeUs

public long getSegmentEndTimeUs(long segmentNum)

getSegmentNum

public long getSegmentNum(long positionUs)

getSegmentStartTimeUs

public long getSegmentStartTimeUs(long segmentNum)

getSegmentUrl

public RangedUri getSegmentUrl(long segmentNum)

isSegmentAvailableAtFullNetworkSpeed

public boolean isSegmentAvailableAtFullNetworkSpeed(
    long segmentNum,
    long nowPeriodTimeUs
)