HlsContentSteeringTracker.Callback


public interface HlsContentSteeringTracker.Callback


A callback to be notified of HlsContentSteeringTracker events.

Summary

Public methods

abstract void
onCurrentPathwayUpdated(
    String currentPathwayId,
    @Nullable String previousPathwayId,
    long previousPathwayExcludeDurationMs
)

Called when the current pathway is updated.

abstract void
onNewPathwayAvailable(
    String newPathwayId,
    String basePathwayId,
    ImmutableList<Uri> newPlaylistUrls,
    ImmutableList<Uri> basePlaylistUrls
)

Called when a new pathway cloned from an existing pathway becomes available.

Public methods

onCurrentPathwayUpdated

abstract void onCurrentPathwayUpdated(
    String currentPathwayId,
    @Nullable String previousPathwayId,
    long previousPathwayExcludeDurationMs
)

Called when the current pathway is updated.

Parameters
String currentPathwayId

The current pathway ID after the update.

@Nullable String previousPathwayId

The pathway ID before the update, or null if the call of this method is the result of starting the tracker.

long previousPathwayExcludeDurationMs

The exclude duration in milliseconds if the update is due to the exclusion of the previous pathway, or TIME_UNSET if the previous pathway is not excluded.

onNewPathwayAvailable

abstract void onNewPathwayAvailable(
    String newPathwayId,
    String basePathwayId,
    ImmutableList<Uri> newPlaylistUrls,
    ImmutableList<Uri> basePlaylistUrls
)

Called when a new pathway cloned from an existing pathway becomes available.

The lists newPlaylistUrls and basePlaylistUrls have the equal size, and each URI in the newPlaylistUrls is cloned from the base URI in the basePlaylistUrls of the same index.

Parameters
String newPathwayId

The new pathway ID.

String basePathwayId

The base pathway ID.

ImmutableList<Uri> newPlaylistUrls

The list of new playlist URLs.

ImmutableList<Uri> basePlaylistUrls

The list of base playlist URLs.