public interface

MediaPeriod.Callback

implements SequenceableLoader.Callback<MediaPeriod>

 androidx.media3.exoplayer.source.MediaPeriod.Callback

Subclasses:

ClippingMediaPeriod, MaskingMediaPeriod

Overview

A callback to be notified of MediaPeriod events.

Summary

Methods
public voidonPrepared(MediaPeriod mediaPeriod)

Called when preparation completes.

Methods

public void onPrepared(MediaPeriod mediaPeriod)

Called when preparation completes.

Called on the playback thread. After invoking this method, the MediaPeriod can expect for MediaPeriod.selectTracks(ExoTrackSelection[], boolean[], SampleStream[], boolean[], long) to be called with the initial track selection.

Parameters:

mediaPeriod: The prepared MediaPeriod.