Class Timeline.Window
java.lang.Object
com.castlabs.android.player.models.Timeline.Window
- Enclosing class:
Timeline
A Window.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns thePlayerConfig
of the Window.long
Returns the Window duration in microseconds.Returns the List ofTimeline.Period
s in the Window.long
Returns the position of the Window relative to its first Period in microseconds.long
Returns the start time of the Window in milliseconds.boolean
Returns whether this is a dynamic (live) Window or not.
-
Method Details
-
getDurationUs
public long getDurationUs()Returns the Window duration in microseconds.- Returns:
- the Window duration in microseconds
-
isDynamic
public boolean isDynamic()Returns whether this is a dynamic (live) Window or not.- Returns:
- whether this is a dynamic (live) Window or not
-
getPositionInFirstPeriodUs
public long getPositionInFirstPeriodUs()Returns the position of the Window relative to its first Period in microseconds.- Returns:
- the position of the Window relative to its first Period in microseconds
-
getWindowStartTimeMs
public long getWindowStartTimeMs()Returns the start time of the Window in milliseconds.- Returns:
- the start time of the Window in milliseconds
-
getConfig
Returns thePlayerConfig
of the Window.- Returns:
- the
PlayerConfig
of the Window
-
getPeriods
Returns the List ofTimeline.Period
s in the Window.- Returns:
- the List of
Timeline.Period
s in the Window
-