HlsPlaylistTracker.PlaylistEventListener


public interface HlsPlaylistTracker.PlaylistEventListener


Called on playlist loading events.

Summary

Public methods

abstract void

Called a playlist changes.

abstract boolean
onPlaylistError(
    Uri url,
    LoadErrorHandlingPolicy.LoadErrorInfo loadErrorInfo,
    boolean forceRetry
)

Called if an error is encountered while loading a playlist.

Public methods

onPlaylistChanged

abstract void onPlaylistChanged()

Called a playlist changes.

onPlaylistError

abstract boolean onPlaylistError(
    Uri url,
    LoadErrorHandlingPolicy.LoadErrorInfo loadErrorInfo,
    boolean forceRetry
)

Called if an error is encountered while loading a playlist.

Parameters
Uri url

The loaded url that caused the error.

LoadErrorHandlingPolicy.LoadErrorInfo loadErrorInfo

The load error info.

boolean forceRetry

Whether retry should be forced without considering exclusion.

Returns
boolean

True if excluding did not encounter errors. False otherwise.