SteeringManifestTracker


@UnstableApi
class SteeringManifestTracker


Tracks the steering manifests.

Summary

Nested types

A callback to be notified of SteeringManifestTracker events.

Public constructors

SteeringManifestTracker(
    dataSourceFactory: DataSource.Factory!,
    downloadExecutorSupplier: Supplier<ReleasableExecutor!>?
)

Creates an instance.

Public functions

Unit
start(
    initialSteeringManifestUrl: Uri!,
    callback: SteeringManifestTracker.Callback!,
    eventDispatcher: MediaSourceEventListener.EventDispatcher!
)

Starts the SteeringManifestTracker.

Unit

Stops the SteeringManifestTracker.

Public constructors

SteeringManifestTracker

SteeringManifestTracker(
    dataSourceFactory: DataSource.Factory!,
    downloadExecutorSupplier: Supplier<ReleasableExecutor!>?
)

Creates an instance.

Parameters
dataSourceFactory: DataSource.Factory!

The DataSource.Factory to use for steering manifest loading.

downloadExecutorSupplier: Supplier<ReleasableExecutor!>?

A supplier for a ReleasableExecutor that is used for loading the steering manifest.

Public functions

start

fun start(
    initialSteeringManifestUrl: Uri!,
    callback: SteeringManifestTracker.Callback!,
    eventDispatcher: MediaSourceEventListener.EventDispatcher!
): Unit

Starts the SteeringManifestTracker.

Parameters
initialSteeringManifestUrl: Uri!

The initial steering manifest url from the content description (an HLS multivariant playlist or a DASH MPD).

callback: SteeringManifestTracker.Callback!

A Callback.

eventDispatcher: MediaSourceEventListener.EventDispatcher!

A dispatcher to notify of events.

stop

fun stop(): Unit

Stops the SteeringManifestTracker.