docs/doc/reference/com/google/android/exoplayer2/source/dash/manifest/Representation.html
Package com.google.android.exoplayer2.source.dash.manifest
Direct Known Subclasses:Representation.MultiSegmentRepresentation, Representation.SingleSegmentRepresentation
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public abstract classRepresentationextends[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.
A DASH representation.
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static class | Representation.MultiSegmentRepresentation |
Deprecated.
A DASH representation consisting of multiple segments.
|
| static class | Representation.SingleSegmentRepresentation |
Deprecated.
A DASH representation consisting of a single segment. |
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| ImmutableList<BaseUrl> | baseUrls |
Deprecated.
The base URLs of the representation.
|
| List<Descriptor> | essentialProperties |
Deprecated.
Essential properties in the representation.
|
| Format | format |
Deprecated.
The format of the representation.
|
| List<Descriptor> | inbandEventStreams |
Deprecated.
The in-band event streams in the representation.
|
| long | presentationTimeOffsetUs |
Deprecated.
The offset of the presentation timestamps in the media stream relative to media time.
|
| static long | REVISION_ID_DEFAULT |
Deprecated.
A default value for revisionId.
|
| long | revisionId |
Deprecated.
Identifies the revision of the media contained within the representation.
|
| List<Descriptor> | supplementalProperties |
Deprecated.
Supplemental properties in the adaptation set. |
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| abstract String | getCacheKey() |
Deprecated.
Returns a cache key for the representation if set, or null.
|
| abstract DashSegmentIndex | getIndex() |
Deprecated.
Returns an index if the representation provides one directly, or null otherwise.
|
| abstract RangedUri | getIndexUri() |
Deprecated.
Returns a RangedUri defining the location of the representation's segment index, or null if the representation provides an index directly.
|
| RangedUri | getInitializationUri() |
Deprecated.
Returns a RangedUri defining the location of the representation's initialization data, or null if no initialization data exists.
|
| static Representation | newInstance(long revisionId, Format format, List<BaseUrl> baseUrls, SegmentBase segmentBase) |
Deprecated.
Constructs a new instance.
|
| static Representation | newInstance(long revisionId, Format format, List<BaseUrl> baseUrls, SegmentBase segmentBase, List<Descriptor> inbandEventStreams, List<Descriptor> essentialProperties, List<Descriptor> supplementalProperties, String cacheKey) |
Deprecated.
Constructs a new instance. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final long REVISION_ID_DEFAULT
Deprecated.
A default value for revisionId.
See Also:Constant Field Values
-
public final long revisionId
Deprecated.
Identifies the revision of the media contained within the representation. If the media can change over time (e.g. as a result of it being re-encoded), then this identifier can be set to uniquely identify the revision of the media. The timestamp at which the media was encoded is often a suitable.
-
public final[Format](../../../Format.html "class in com.google.android.exoplayer2")format
Deprecated.
The format of the representation.
-
public final[ImmutableList](https://guava.dev/releases/31.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true "class or interface in com.google.common.collect")<[BaseUrl](BaseUrl.html "class in com.google.android.exoplayer2.source.dash.manifest")> baseUrls
Deprecated.
The base URLs of the representation.
-
public final long presentationTimeOffsetUs
Deprecated.
The offset of the presentation timestamps in the media stream relative to media time.
-
public final[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Descriptor](Descriptor.html "class in com.google.android.exoplayer2.source.dash.manifest")> inbandEventStreams
Deprecated.
The in-band event streams in the representation. May be empty.
-
public final[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Descriptor](Descriptor.html "class in com.google.android.exoplayer2.source.dash.manifest")> essentialProperties
Deprecated.
Essential properties in the representation. May be empty.
-
public final[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Descriptor](Descriptor.html "class in com.google.android.exoplayer2.source.dash.manifest")> supplementalProperties
Deprecated.
Supplemental properties in the adaptation set. May be empty.
-
public static[Representation](Representation.html "class in com.google.android.exoplayer2.source.dash.manifest")newInstance(long revisionId,[Format](../../../Format.html "class in com.google.android.exoplayer2")format,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[BaseUrl](BaseUrl.html "class in com.google.android.exoplayer2.source.dash.manifest")> baseUrls,[SegmentBase](SegmentBase.html "class in com.google.android.exoplayer2.source.dash.manifest")segmentBase)
Deprecated.
Constructs a new instance.
Parameters:revisionId - Identifies the revision of the content.format - The format of the representation.baseUrls - The list of base URLs of the representation.segmentBase - A segment base element for the representation.Returns:The constructed instance.
-
public static[Representation](Representation.html "class in com.google.android.exoplayer2.source.dash.manifest")newInstance(long revisionId,[Format](../../../Format.html "class in com.google.android.exoplayer2")format,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[BaseUrl](BaseUrl.html "class in com.google.android.exoplayer2.source.dash.manifest")> baseUrls,[SegmentBase](SegmentBase.html "class in com.google.android.exoplayer2.source.dash.manifest")segmentBase,
@Nullable[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Descriptor](Descriptor.html "class in com.google.android.exoplayer2.source.dash.manifest")> inbandEventStreams,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Descriptor](Descriptor.html "class in com.google.android.exoplayer2.source.dash.manifest")> essentialProperties,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Descriptor](Descriptor.html "class in com.google.android.exoplayer2.source.dash.manifest")> supplementalProperties,
@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")cacheKey)
Deprecated.
Constructs a new instance.
Parameters:revisionId - Identifies the revision of the content.format - The format of the representation.baseUrls - The list of base URLs of the representation.segmentBase - A segment base element for the representation.inbandEventStreams - The in-band event streams in the representation. May be null.essentialProperties - Essential properties in the representation. May be empty.supplementalProperties - Supplemental properties in the representation. May be empty.cacheKey - An optional key to be returned from getCacheKey(), or null. This parameter is ignored if segmentBase consists of multiple segments.Returns:The constructed instance.
-
@Nullable
public[RangedUri](RangedUri.html "class in com.google.android.exoplayer2.source.dash.manifest")getInitializationUri()
Deprecated.
Returns a RangedUri defining the location of the representation's initialization data, or null if no initialization data exists.
-
@Nullable
public abstract[RangedUri](RangedUri.html "class in com.google.android.exoplayer2.source.dash.manifest")getIndexUri()
Deprecated.
Returns a RangedUri defining the location of the representation's segment index, or null if the representation provides an index directly.
-
@Nullable
public abstract[DashSegmentIndex](../DashSegmentIndex.html "interface in com.google.android.exoplayer2.source.dash")getIndex()
Deprecated.
Returns an index if the representation provides one directly, or null otherwise.
-
@Nullable
public abstract[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getCacheKey()
Deprecated.
Returns a cache key for the representation if set, or null.