Interface HlsPlaylistTracker.PlaylistEventListener

  • All Known Implementing Classes:
    HlsMediaPeriod
    Enclosing interface:
    HlsPlaylistTracker

    public static interface HlsPlaylistTracker.PlaylistEventListener
    Called on playlist loading events.
    • Method Detail

      • onPlaylistChanged

        void onPlaylistChanged()
        Called a playlist changes.
      • onPlaylistError

        boolean onPlaylistError​(Uri url,
                                long exclusionDurationMs)
        Called if an error is encountered while loading a playlist.
        Parameters:
        url - The loaded url that caused the error.
        exclusionDurationMs - The duration for which the playlist should be excluded. Or C.TIME_UNSET if the playlist should not be excluded.
        Returns:
        True if excluding did not encounter errors. False otherwise.