Class FakeMediaSource.InitialTimeline

  • All Implemented Interfaces:
    Bundleable
    Enclosing class:
    FakeMediaSource

    public static class FakeMediaSource.InitialTimeline
    extends ForwardingTimeline
    A forwarding timeline to provide an initial timeline for fake multi window sources.
    • Constructor Detail

      • InitialTimeline

        public InitialTimeline​(Timeline timeline)
    • Method Detail

      • getWindow

        public Timeline.Window getWindow​(int windowIndex,
                                         Timeline.Window 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 ForwardingTimeline
        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.