Class Timeline.Window

java.lang.Object
com.castlabs.android.player.models.Timeline.Window
Enclosing class:
Timeline

public static class Timeline.Window extends Object
A Window.
  • Method Details

    • getDurationUs

      public long getDurationUs()
      Returns:
      the Window duration in microseconds
    • isDynamic

      public boolean isDynamic()
      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
    • getWindowStartTimeMs

      public long getWindowStartTimeMs()
      Returns:
      the start time of the Window in milliseconds
    • getConfig

      @NonNull public PlayerConfig getConfig()
      Returns:
      the PlayerConfig of the Window
    • getPeriods

      @NonNull public List<Timeline.Period> getPeriods()
      Returns:
      the List of Timeline.Periods in the Window