SteeringManifestTracker


@UnstableApi
public final class SteeringManifestTracker


Tracks the steering manifests.

Summary

Nested types

A callback to be notified of SteeringManifestTracker events.

Public constructors

SteeringManifestTracker(
    DataSource.Factory dataSourceFactory,
    @Nullable Supplier<ReleasableExecutor> downloadExecutorSupplier
)

Creates an instance.

Public methods

void
start(
    Uri initialSteeringManifestUrl,
    SteeringManifestTracker.Callback callback,
    MediaSourceEventListener.EventDispatcher eventDispatcher
)

Starts the SteeringManifestTracker.

void

Stops the SteeringManifestTracker.

Public constructors

SteeringManifestTracker

public SteeringManifestTracker(
    DataSource.Factory dataSourceFactory,
    @Nullable Supplier<ReleasableExecutor> downloadExecutorSupplier
)

Creates an instance.

Parameters
DataSource.Factory dataSourceFactory

The DataSource.Factory to use for steering manifest loading.

@Nullable Supplier<ReleasableExecutor> downloadExecutorSupplier

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

Public methods

start

public void start(
    Uri initialSteeringManifestUrl,
    SteeringManifestTracker.Callback callback,
    MediaSourceEventListener.EventDispatcher eventDispatcher
)

Starts the SteeringManifestTracker.

Parameters
Uri initialSteeringManifestUrl

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

SteeringManifestTracker.Callback callback

A Callback.

MediaSourceEventListener.EventDispatcher eventDispatcher

A dispatcher to notify of events.

stop

public void stop()

Stops the SteeringManifestTracker.