HlsPlaylistTracker.PlaylistEventListener


interface HlsPlaylistTracker.PlaylistEventListener


Called on playlist loading events.

Summary

Public functions

Unit

Called a playlist changes.

Boolean
onPlaylistError(
    url: Uri!,
    loadErrorInfo: LoadErrorHandlingPolicy.LoadErrorInfo!,
    forceRetry: Boolean
)

Called if an error is encountered while loading a playlist.

Public functions

onPlaylistChanged

fun onPlaylistChanged(): Unit

Called a playlist changes.

onPlaylistError

fun onPlaylistError(
    url: Uri!,
    loadErrorInfo: LoadErrorHandlingPolicy.LoadErrorInfo!,
    forceRetry: Boolean
): Boolean

Called if an error is encountered while loading a playlist.

Parameters
url: Uri!

The loaded url that caused the error.

loadErrorInfo: LoadErrorHandlingPolicy.LoadErrorInfo!

The load error info.

forceRetry: Boolean

Whether retry should be forced without considering exclusion.

Returns
Boolean

True if excluding did not encounter errors. False otherwise.