Package com.google.android.exoplayer2
Class SimpleBasePlayer.PeriodData
- java.lang.Object
-
- com.google.android.exoplayer2.SimpleBasePlayer.PeriodData
-
- Enclosing class:
- SimpleBasePlayer
protected static final class SimpleBasePlayer.PeriodData extends Object
Data describing the properties of a period inside aSimpleBasePlayer.MediaItemData
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleBasePlayer.PeriodData.Builder
A builder forSimpleBasePlayer.PeriodData
objects.
-
Field Summary
Fields Modifier and Type Field Description AdPlaybackState
adPlaybackState
TheAdPlaybackState
of the period, orAdPlaybackState.NONE
if there are no ads.long
durationUs
The total duration of the period, in microseconds, orC.TIME_UNSET
if unknown.boolean
isPlaceholder
Whether this period contains placeholder information because the real information has yet to be loaded.Object
uid
The unique identifier of the period within its media item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleBasePlayer.PeriodData.Builder
buildUpon()
Returns aSimpleBasePlayer.PeriodData.Builder
pre-populated with the current values.boolean
equals(Object o)
int
hashCode()
-
-
-
Field Detail
-
uid
public final Object uid
The unique identifier of the period within its media item.
-
durationUs
public final long durationUs
The total duration of the period, in microseconds, orC.TIME_UNSET
if unknown. Only the last period in a media item can have an unknown duration.
-
adPlaybackState
public final AdPlaybackState adPlaybackState
TheAdPlaybackState
of the period, orAdPlaybackState.NONE
if there are no ads.
-
isPlaceholder
public final boolean isPlaceholder
Whether this period contains placeholder information because the real information has yet to be loaded.
-
-
Method Detail
-
buildUpon
public SimpleBasePlayer.PeriodData.Builder buildUpon()
Returns aSimpleBasePlayer.PeriodData.Builder
pre-populated with the current values.
-
-