docs/doc/reference/com/google/android/exoplayer2/testutil/FakeMediaSource.InitialTimeline.html
Package com.google.android.exoplayer2.testutil
All Implemented Interfaces:BundleableEnclosing class:FakeMediaSource
public static classFakeMediaSource.InitialTimelineextends[ForwardingTimeline](../source/ForwardingTimeline.html "class in com.google.android.exoplayer2.source")
A forwarding timeline to provide an initial timeline for fake multi window sources.
-
Timeline.Period, Timeline.RemotableTimeline, Timeline.Window
-
Bundleable.Creator<T extends Bundleable>
-
timeline
-
CREATOR, EMPTY
Constructors | Constructor | Description |
| --- | --- |
| InitialTimeline(Timeline timeline) | |
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| Timeline.Window | getWindow(int windowIndex, Timeline.Window window, long defaultPositionProjectionUs) |
Populates a Timeline.Window with data for the window at the specified index.
|
-
getFirstWindowIndex, getIndexOfPeriod, getLastWindowIndex, getNextWindowIndex, getPeriod, getPeriodCount, getPreviousWindowIndex, getUidOfPeriod, getWindowCount
-
equals, getNextPeriodIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, hashCode, isEmpty, isLastPeriod, toBundle, toBundleWithOneWindowOnly
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public InitialTimeline([Timeline](../Timeline.html "class in com.google.android.exoplayer2")timeline)
-
public[Timeline.Window](../Timeline.Window.html "class in com.google.android.exoplayer2")getWindow(int windowIndex,[Timeline.Window](../Timeline.Window.html "class in com.google.android.exoplayer2")window,
long defaultPositionProjectionUs)
Description copied from class: Timeline
Populates a Timeline.Window with data for the window at the specified index.
Overrides:getWindow in class ForwardingTimelineParameters:windowIndex - The index of the window.window - The Timeline.Window to populate. Must not be null.defaultPositionProjectionUs - A duration into the future that the populated window's default start position should be projected.Returns:The populated Timeline.Window, for convenience.