Interface HlsPlaylistTracker.PlaylistEventListener
-
- All Known Implementing Classes:
HlsMediaPeriod
- Enclosing interface:
- HlsPlaylistTracker
public static interface HlsPlaylistTracker.PlaylistEventListenerCalled on playlist loading events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonPlaylistChanged()Called a playlist changes.booleanonPlaylistError(Uri url, LoadErrorHandlingPolicy.LoadErrorInfo loadErrorInfo, boolean forceRetry)Called if an error is encountered while loading a playlist.
-
-
-
Method Detail
-
onPlaylistChanged
void onPlaylistChanged()
Called a playlist changes.
-
onPlaylistError
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.
-
-