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> newUris,
    ImmutableList<Uri> baseUris
)

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> newUris,
    ImmutableList<Uri> baseUris
)

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

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

Parameters
String newPathwayId

The new pathway ID.

String basePathwayId

The base pathway ID.

ImmutableList<Uri> newUris

The list of new cloned URIs.

ImmutableList<Uri> baseUris

The list of base URIs.