public static class FakeMediaSource.InitialTimeline extends ForwardingTimeline
Timeline.Period, Timeline.Windowtimeline| Constructor | Description |
|---|---|
InitialTimeline(Timeline timeline) |
| 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, getWindowCountclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitequals, getNextPeriodIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getWindow, getWindow, hashCode, isEmpty, isLastPeriodpublic InitialTimeline(Timeline timeline)
public Timeline.Window getWindow(int windowIndex, Timeline.Window window, long defaultPositionProjectionUs)
TimelineTimeline.Window with data for the window at the specified index.getWindow in class ForwardingTimelinewindowIndex - 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.Timeline.Window, for convenience.