public class

FakeMediaSource.InitialTimeline

extends ForwardingTimeline

 java.lang.Object

androidx.media3.common.Timeline

androidx.media3.exoplayer.source.ForwardingTimeline

↳androidx.media3.test.utils.FakeMediaSource.InitialTimeline

Overview

A forwarding timeline to provide an initial timeline for fake multi window sources.

Summary

Fields
from ForwardingTimelinetimeline
from TimelineEMPTY
Constructors
publicInitialTimeline(Timeline timeline)

Methods
public abstract Timeline.WindowgetWindow(int windowIndex, Timeline.Window window, long defaultPositionProjectionUs)

Populates a Timeline.Window with data for the window at the specified index.

from ForwardingTimelinegetFirstWindowIndex, getIndexOfPeriod, getLastWindowIndex, getNextWindowIndex, getPeriod, getPeriodCount, getPreviousWindowIndex, getUidOfPeriod, getWindowCount
from TimelinecopyWithSingleWindow, equals, fromBundle, getNextPeriodIndex, getPeriod, getPeriodByUid, getPeriodPosition, getPeriodPosition, getPeriodPositionUs, getPeriodPositionUs, getWindow, hashCode, isEmpty, isLastPeriod, toBundle
from java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Constructors

public InitialTimeline(Timeline timeline)

Methods

public abstract Timeline.Window getWindow(int windowIndex, Timeline.Window window, long defaultPositionProjectionUs)

Populates a Timeline.Window with data for the window at the specified index.

Parameters:

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.