Back to Exoplayer

DefaultDashChunkSource.RepresentationHolder (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/dash/DefaultDashChunkSource.RepresentationHolder.html

latest3.5 KB
Original Source

Package com.google.android.exoplayer2.source.dash

Class DefaultDashChunkSource.RepresentationHolder


protected static final classDefaultDashChunkSource.RepresentationHolderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

Holds information about a snapshot of a single Representation.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | Representation | representation | | | DashSegmentIndex | segmentIndex | | | BaseUrl | selectedBaseUrl | |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | long | getFirstAvailableSegmentNum​(long nowUnixTimeUs) | | | long | getFirstSegmentNum() | | | long | getLastAvailableSegmentNum​(long nowUnixTimeUs) | | | long | getSegmentCount() | | | long | getSegmentEndTimeUs​(long segmentNum) | | | long | getSegmentNum​(long positionUs) | | | long | getSegmentStartTimeUs​(long segmentNum) | | | RangedUri | getSegmentUrl​(long segmentNum) | | | boolean | isSegmentAvailableAtFullNetworkSpeed​(long segmentNum, long nowPeriodTimeUs) | |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

representation

public final[Representation](manifest/Representation.html "class in com.google.android.exoplayer2.source.dash.manifest")representation
- 

selectedBaseUrl

public final[BaseUrl](manifest/BaseUrl.html "class in com.google.android.exoplayer2.source.dash.manifest")selectedBaseUrl
- 

segmentIndex

@Nullable
public final[DashSegmentIndex](DashSegmentIndex.html "interface in com.google.android.exoplayer2.source.dash")segmentIndex

Method Detail

- 

getFirstSegmentNum

public long getFirstSegmentNum()
- 

getFirstAvailableSegmentNum

public long getFirstAvailableSegmentNum​(long nowUnixTimeUs)
- 

getSegmentCount

public long getSegmentCount()
- 

getSegmentStartTimeUs

public long getSegmentStartTimeUs​(long segmentNum)
- 

getSegmentEndTimeUs

public long getSegmentEndTimeUs​(long segmentNum)
- 

getSegmentNum

public long getSegmentNum​(long positionUs)
- 

getSegmentUrl

public[RangedUri](manifest/RangedUri.html "class in com.google.android.exoplayer2.source.dash.manifest")getSegmentUrl​(long segmentNum)
- 

getLastAvailableSegmentNum

public long getLastAvailableSegmentNum​(long nowUnixTimeUs)
- 

isSegmentAvailableAtFullNetworkSpeed

public boolean isSegmentAvailableAtFullNetworkSpeed​(long segmentNum,
                                                    long nowPeriodTimeUs)