Class MediaSource.MediaPeriodId
- java.lang.Object
-
- com.google.android.exoplayer2.source.MediaPeriodId
-
- com.google.android.exoplayer2.source.MediaSource.MediaPeriodId
-
- Enclosing interface:
- MediaSource
public static final class MediaSource.MediaPeriodId extends MediaPeriodId
Identifier for aMediaPeriod
.Extends for backward-compatibility
MediaPeriodId
.
-
-
Field Summary
-
Fields inherited from class com.google.android.exoplayer2.source.MediaPeriodId
adGroupIndex, adIndexInAdGroup, nextAdGroupIndex, periodUid, windowSequenceNumber
-
-
Constructor Summary
Constructors Constructor Description MediaPeriodId(MediaPeriodId mediaPeriodId)
Wraps anMediaPeriodId
into a MediaPeriodId.MediaPeriodId(Object periodUid)
MediaPeriodId(Object periodUid, int adGroupIndex, int adIndexInAdGroup, long windowSequenceNumber)
MediaPeriodId(Object periodUid, long windowSequenceNumber)
MediaPeriodId(Object periodUid, long windowSequenceNumber, int nextAdGroupIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaSource.MediaPeriodId
copyWithPeriodUid(Object newPeriodUid)
MediaSource.MediaPeriodId
copyWithWindowSequenceNumber(long windowSequenceNumber)
-
Methods inherited from class com.google.android.exoplayer2.source.MediaPeriodId
equals, hashCode, isAd
-
-
-
-
Constructor Detail
-
MediaPeriodId
public MediaPeriodId(Object periodUid)
-
MediaPeriodId
public MediaPeriodId(Object periodUid, long windowSequenceNumber)
-
MediaPeriodId
public MediaPeriodId(Object periodUid, long windowSequenceNumber, int nextAdGroupIndex)
-
MediaPeriodId
public MediaPeriodId(Object periodUid, int adGroupIndex, int adIndexInAdGroup, long windowSequenceNumber)
-
MediaPeriodId
public MediaPeriodId(MediaPeriodId mediaPeriodId)
Wraps anMediaPeriodId
into a MediaPeriodId.
-
-
Method Detail
-
copyWithPeriodUid
public MediaSource.MediaPeriodId copyWithPeriodUid(Object newPeriodUid)
- Overrides:
copyWithPeriodUid
in classMediaPeriodId
-
copyWithWindowSequenceNumber
public MediaSource.MediaPeriodId copyWithWindowSequenceNumber(long windowSequenceNumber)
- Overrides:
copyWithWindowSequenceNumber
in classMediaPeriodId
-
-