Class SegmentBase
- java.lang.Object
-
- com.google.android.exoplayer2.source.dash.manifest.SegmentBase
-
- Direct Known Subclasses:
SegmentBase.MultiSegmentBase,SegmentBase.SingleSegmentBase
@Deprecated public abstract class SegmentBase extends Object
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.An approximate representation of a SegmentBase manifest element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSegmentBase.MultiSegmentBaseDeprecated.ASegmentBasethat consists of multiple segments.static classSegmentBase.SegmentListDeprecated.ASegmentBase.MultiSegmentBasethat uses a SegmentList to define its segments.static classSegmentBase.SegmentTemplateDeprecated.ASegmentBase.MultiSegmentBasethat uses a SegmentTemplate to define its segments.static classSegmentBase.SegmentTimelineElementDeprecated.Represents a timeline segment from the MPD's SegmentTimeline list.static classSegmentBase.SingleSegmentBaseDeprecated.ASegmentBasethat defines a single segment.
-
Constructor Summary
Constructors Constructor Description SegmentBase(RangedUri initialization, long timescale, long presentationTimeOffset)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RangedUrigetInitialization(Representation representation)Deprecated.Returns theRangedUridefining the location of initialization data for a given representation, or null if no initialization data exists.longgetPresentationTimeOffsetUs()Deprecated.Returns the presentation time offset, in microseconds.
-
-
-
Constructor Detail
-
SegmentBase
public SegmentBase(@Nullable RangedUri initialization, long timescale, long presentationTimeOffset)Deprecated.- 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.
-
-
Method Detail
-
getInitialization
@Nullable public RangedUri getInitialization(Representation representation)
Deprecated.Returns theRangedUridefining the location of initialization data for a given representation, or null if no initialization data exists.- Parameters:
representation- TheRepresentationfor which initialization data is required.- Returns:
- A
RangedUridefining the location of the initialization data, or null.
-
getPresentationTimeOffsetUs
public long getPresentationTimeOffsetUs()
Deprecated.Returns the presentation time offset, in microseconds.
-
-