Interface MediaSource.MediaSourceCaller

  • All Known Implementing Classes:
    ServerSideAdInsertionMediaSource
    Enclosing interface:
    MediaSource

    public static interface MediaSource.MediaSourceCaller
    A caller of media sources, which will be notified of source events.
    • Method Detail

      • onSourceInfoRefreshed

        void onSourceInfoRefreshed​(MediaSource source,
                                   Timeline timeline)
        Called when the Timeline has been refreshed.

        Called on the playback thread.

        Parameters:
        source - The MediaSource whose info has been refreshed.
        timeline - The source's timeline.