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 classSimpleBasePlayer.PeriodData.BuilderA builder forSimpleBasePlayer.PeriodDataobjects.
-
Field Summary
Fields Modifier and Type Field Description AdPlaybackStateadPlaybackStateTheAdPlaybackStateof the period, orAdPlaybackState.NONEif there are no ads.longdurationUsThe total duration of the period, in microseconds, orC.TIME_UNSETif unknown.booleanisPlaceholderWhether this period contains placeholder information because the real information has yet to be loaded.ObjectuidThe unique identifier of the period within its media item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleBasePlayer.PeriodData.BuilderbuildUpon()Returns aSimpleBasePlayer.PeriodData.Builderpre-populated with the current values.booleanequals(Object o)inthashCode()
-
-
-
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_UNSETif unknown. Only the last period in a media item can have an unknown duration.
-
adPlaybackState
public final AdPlaybackState adPlaybackState
TheAdPlaybackStateof the period, orAdPlaybackState.NONEif 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.Builderpre-populated with the current values.
-
-