MediaItemTracker

interface MediaItemTracker<T>

A tracker for media items played by an player.

Parameters

T

The type of data associated with each tracked media item.

Types

Link copied to clipboard
fun interface Factory<T>

A factory interface for creating instances of MediaItemTracker.

Functions

Link copied to clipboard
abstract fun start(player: ExoPlayer, data: T)

Initiates media tracking for the given player.

Link copied to clipboard
abstract fun stop(player: ExoPlayer)

Stops media tracking for the given player.