public interface

HlsPlaylistTracker.PlaylistEventListener

 androidx.media3.exoplayer.hls.playlist.HlsPlaylistTracker.PlaylistEventListener

Overview

Called on playlist loading events.

Summary

Methods
public voidonPlaylistChanged()

Called a playlist changes.

public booleanonPlaylistError(Uri url, LoadErrorHandlingPolicy.LoadErrorInfo loadErrorInfo, boolean forceRetry)

Called if an error is encountered while loading a playlist.

Methods

public void onPlaylistChanged()

Called a playlist changes.

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

Called if an error is encountered while loading a playlist.

Parameters:

url: The loaded url that caused the error.
loadErrorInfo: The load error info.
forceRetry: Whether retry should be forced without considering exclusion.

Returns:

True if excluding did not encounter errors. False otherwise.