Class SegmentBase.SegmentList
- java.lang.Object
-
- com.google.android.exoplayer2.source.dash.manifest.SegmentBase
-
- com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase
-
- com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentList
-
- Enclosing class:
- SegmentBase
public static final class SegmentBase.SegmentList extends SegmentBase.MultiSegmentBase
ASegmentBase.MultiSegmentBasethat uses a SegmentList to define its segments.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.android.exoplayer2.source.dash.manifest.SegmentBase
SegmentBase.MultiSegmentBase, SegmentBase.SegmentList, SegmentBase.SegmentTemplate, SegmentBase.SegmentTimelineElement, SegmentBase.SingleSegmentBase
-
-
Constructor Summary
Constructors Constructor Description SegmentList(RangedUri initialization, long timescale, long presentationTimeOffset, long startNumber, long duration, List<SegmentBase.SegmentTimelineElement> segmentTimeline, long availabilityTimeOffsetUs, List<RangedUri> mediaSegments, long timeShiftBufferDepthUs, long periodStartUnixTimeUs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSegmentCount(long periodDurationUs)RangedUrigetSegmentUrl(Representation representation, long sequenceNumber)Returns aRangedUridefining the location of a segment for the given index in the given representation.booleanisExplicit()-
Methods inherited from class com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase
getAvailableSegmentCount, getFirstAvailableSegmentNum, getFirstSegmentNum, getNextSegmentAvailableTimeUs, getSegmentDurationUs, getSegmentNum, getSegmentTimeUs
-
Methods inherited from class com.google.android.exoplayer2.source.dash.manifest.SegmentBase
getInitialization, getPresentationTimeOffsetUs
-
-
-
-
Constructor Detail
-
SegmentList
public SegmentList(RangedUri initialization, long timescale, long presentationTimeOffset, long startNumber, long duration, @Nullable List<SegmentBase.SegmentTimelineElement> segmentTimeline, long availabilityTimeOffsetUs, @Nullable List<RangedUri> mediaSegments, long timeShiftBufferDepthUs, long periodStartUnixTimeUs)
- Parameters:
initialization- ARangedUricorresponding to initialization data, if such data exists.timescale- The timescale in units per second.presentationTimeOffset- The presentation time offset. The value in seconds is the division of this value andtimescale.startNumber- The sequence number of the first segment.duration- The duration of each segment in the case of fixed duration segments. The value in seconds is the division of this value andtimescale. IfsegmentTimelineis non-null then this parameter is ignored.segmentTimeline- A segment timeline corresponding to the segments. If null, then segments are assumed to be of fixed duration as specified by thedurationparameter.availabilityTimeOffsetUs- The offset to the current realtime at which segments become available in microseconds, orC.TIME_UNSETif not applicable.mediaSegments- A list ofRangedUris indicating the locations of the segments.timeShiftBufferDepthUs- The time shift buffer depth in microseconds.periodStartUnixTimeUs- The start of the enclosing period in microseconds since the Unix epoch.
-
-
Method Detail
-
getSegmentUrl
public RangedUri getSegmentUrl(Representation representation, long sequenceNumber)
Description copied from class:SegmentBase.MultiSegmentBaseReturns aRangedUridefining the location of a segment for the given index in the given representation.- Specified by:
getSegmentUrlin classSegmentBase.MultiSegmentBase
-
getSegmentCount
public long getSegmentCount(long periodDurationUs)
Description copied from class:SegmentBase.MultiSegmentBase- Specified by:
getSegmentCountin classSegmentBase.MultiSegmentBase
-
isExplicit
public boolean isExplicit()
Description copied from class:SegmentBase.MultiSegmentBase- Overrides:
isExplicitin classSegmentBase.MultiSegmentBase
-
-