public interface

TrackSelector.InvalidationListener

 androidx.media3.exoplayer.trackselection.TrackSelector.InvalidationListener

Overview

Notified when selections previously made by a TrackSelector are no longer valid.

Summary

Methods
public voidonRendererCapabilitiesChanged(Renderer renderer)

Called by a TrackSelector to indicate that selections it has previously made may no longer be valid due to the renderer capabilities change.

public voidonTrackSelectionsInvalidated()

Called by a TrackSelector to indicate that selections it has previously made are no longer valid.

Methods

public void onTrackSelectionsInvalidated()

Called by a TrackSelector to indicate that selections it has previously made are no longer valid. May be called from any thread.

public void onRendererCapabilitiesChanged(Renderer renderer)

Called by a TrackSelector to indicate that selections it has previously made may no longer be valid due to the renderer capabilities change. This method is called from playback thread.

Parameters:

renderer: The renderer whose capabilities changed.