public class BrightcoveSegmentTemplate
extends com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentTemplate
com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase, com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentList, com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentTemplate, com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentTimelineElement, com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SingleSegmentBase
Constructor and Description |
---|
BrightcoveSegmentTemplate(com.google.android.exoplayer2.source.dash.manifest.RangedUri initialization,
long timescale,
long presentationTimeOffset,
long startNumber,
long endNumber,
long duration,
java.util.List<com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentTimelineElement> segmentTimeline,
com.google.android.exoplayer2.source.dash.manifest.UrlTemplate initializationTemplate,
com.google.android.exoplayer2.source.dash.manifest.UrlTemplate mediaTemplate) |
Modifier and Type | Method and Description |
---|---|
int |
getSegmentCount(long periodDurationUs) |
getInitialization, getSegmentUrl
getFirstSegmentNum, getSegmentDurationUs, getSegmentNum, getSegmentTimeUs, isExplicit
public BrightcoveSegmentTemplate(com.google.android.exoplayer2.source.dash.manifest.RangedUri initialization, long timescale, long presentationTimeOffset, long startNumber, long endNumber, long duration, java.util.List<com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SegmentTimelineElement> segmentTimeline, com.google.android.exoplayer2.source.dash.manifest.UrlTemplate initializationTemplate, com.google.android.exoplayer2.source.dash.manifest.UrlTemplate mediaTemplate)
initialization
- A RangedUri
corresponding to initialization data, if such data
exists. The value of this parameter is ignored if initializationTemplate
is
non-null.timescale
- The timescale in units per second.presentationTimeOffset
- The presentation time offset. The value in seconds is the
division of this value and timescale
.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 and timescale
. If
segmentTimeline
is 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 the duration
parameter.initializationTemplate
- A template defining the location of initialization data, if
such data exists. If non-null then the initialization
parameter is ignored. If
null then initialization
will be used.mediaTemplate
- A template defining the location of each media segment.