Back to Exoplayer

SegmentBase (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/dash/manifest/SegmentBase.html

latest4.9 KB
Original Source

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

Class SegmentBase

  • java.lang.Object

    • com.google.android.exoplayer2.source.dash.manifest.SegmentBase
  • Direct Known Subclasses:SegmentBase.MultiSegmentBase, SegmentBase.SingleSegmentBase


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public abstract classSegmentBaseextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

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 class | SegmentBase.MultiSegmentBase | Deprecated.

A SegmentBase that consists of multiple segments. | | static class | SegmentBase.SegmentList | Deprecated.

A SegmentBase.MultiSegmentBase that uses a SegmentList to define its segments. | | static class | SegmentBase.SegmentTemplate | Deprecated.

A SegmentBase.MultiSegmentBase that uses a SegmentTemplate to define its segments. | | static class | SegmentBase.SegmentTimelineElement | Deprecated.

Represents a timeline segment from the MPD's SegmentTimeline list. | | static class | SegmentBase.SingleSegmentBase | Deprecated.

A SegmentBase that 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 | | --- | --- | --- | | RangedUri | getInitialization​(Representation representation) | Deprecated.

Returns the RangedUri defining the location of initialization data for a given representation, or null if no initialization data exists. | | long | getPresentationTimeOffsetUs() | Deprecated.

Returns the presentation time offset, in microseconds. |

- 

Methods inherited from class java.lang.Object

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

Constructor Detail

- 

SegmentBase

public SegmentBase​(@Nullable[RangedUri](RangedUri.html "class in com.google.android.exoplayer2.source.dash.manifest")initialization,
                   long timescale,
                   long presentationTimeOffset)

Deprecated. Parameters:initialization - A RangedUri corresponding 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 and timescale.

Method Detail

- 

getInitialization

@Nullable
public[RangedUri](RangedUri.html "class in com.google.android.exoplayer2.source.dash.manifest")getInitialization​([Representation](Representation.html "class in com.google.android.exoplayer2.source.dash.manifest")representation)

Deprecated.

Returns the RangedUri defining the location of initialization data for a given representation, or null if no initialization data exists. Parameters:representation - The Representation for which initialization data is required.Returns:A RangedUri defining the location of the initialization data, or null.

- 

getPresentationTimeOffsetUs

public long getPresentationTimeOffsetUs()

Deprecated.

Returns the presentation time offset, in microseconds.