HlsContentSteeringTracker.Callback


interface HlsContentSteeringTracker.Callback


A callback to be notified of HlsContentSteeringTracker events.

Summary

Public functions

Unit
onCurrentPathwayUpdated(
    currentPathwayId: String!,
    previousPathwayId: String?,
    previousPathwayExcludeDurationMs: Long
)

Called when the current pathway is updated.

Unit
onNewPathwayAvailable(
    newPathwayId: String!,
    basePathwayId: String!,
    newPlaylistUrls: ImmutableList<Uri!>!,
    basePlaylistUrls: ImmutableList<Uri!>!
)

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

Public functions

onCurrentPathwayUpdated

fun onCurrentPathwayUpdated(
    currentPathwayId: String!,
    previousPathwayId: String?,
    previousPathwayExcludeDurationMs: Long
): Unit

Called when the current pathway is updated.

Parameters
currentPathwayId: String!

The current pathway ID after the update.

previousPathwayId: String?

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

previousPathwayExcludeDurationMs: Long

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

fun onNewPathwayAvailable(
    newPathwayId: String!,
    basePathwayId: String!,
    newPlaylistUrls: ImmutableList<Uri!>!,
    basePlaylistUrls: ImmutableList<Uri!>!
): Unit

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
newPathwayId: String!

The new pathway ID.

basePathwayId: String!

The base pathway ID.

newPlaylistUrls: ImmutableList<Uri!>!

The list of new playlist URLs.

basePlaylistUrls: ImmutableList<Uri!>!

The list of base playlist URLs.