diff --git a/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/Representation.java b/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/Representation.java index 44daa1d016..c6f07ee6d4 100644 --- a/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/Representation.java +++ b/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/Representation.java @@ -35,19 +35,10 @@ public abstract class Representation { public static final long REVISION_ID_DEFAULT = -1; /** - * Identifies the piece of content to which this {@link Representation} belongs. - *
- * For example, all {@link Representation}s belonging to a video should have the same content - * identifier that uniquely identifies that video. - */ - public final String contentId; - /** - * Identifies the revision of the content. - *
- * If the media for a given ({@link #contentId} can change over time without a change to the
- * {@link #format}'s {@link Format#id} (e.g. as a result of re-encoding the media with an
- * updated encoder), then this identifier must uniquely identify the revision of the media. The
- * timestamp at which the media was encoded is often a suitable.
+ * Identifies the revision of the media contained within the representation. If the content can
+ * change over time (e.g. as a result of re-encoding the media with an updated encoder), then this
+ * identified 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 long revisionId;
/**
@@ -121,17 +112,20 @@ public abstract class Representation {
return new SingleSegmentRepresentation(contentId, revisionId, format, baseUrl,
(SingleSegmentBase) segmentBase, inbandEventStreams, customCacheKey, C.LENGTH_UNSET);
} else if (segmentBase instanceof MultiSegmentBase) {
- return new MultiSegmentRepresentation(contentId, revisionId, format, baseUrl,
- (MultiSegmentBase) segmentBase, inbandEventStreams);
+ return new MultiSegmentRepresentation(
+ revisionId, format, baseUrl, (MultiSegmentBase) segmentBase, inbandEventStreams);
} else {
throw new IllegalArgumentException("segmentBase must be of type SingleSegmentBase or "
+ "MultiSegmentBase");
}
}
- private Representation(String contentId, long revisionId, Format format, String baseUrl,
- SegmentBase segmentBase, List