MediaPeriod.Callback


public interface MediaPeriod.Callback extends SequenceableLoader.Callback<MediaPeriod>
Known direct subclasses

A callback to be notified of MediaPeriod events.

Summary

Public methods

abstract void
onPrepared(MediaPeriod mediaPeriod)

Called when preparation completes.

Inherited methods

From androidx.media3.exoplayer.source.SequenceableLoader.Callback
abstract void

Called by the loader to indicate that it wishes for its continueLoading method to be called when it can continue to load data.

Public methods

onPrepared

abstract void onPrepared(MediaPeriod mediaPeriod)

Called when preparation completes.

Called on the playback thread. After invoking this method, the MediaPeriod can expect for selectTracks to be called with the initial track selection.