TrackSelector.InvalidationListener


interface TrackSelector.InvalidationListener


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

Summary

Public functions

Unit

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

Unit

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

Public functions

onRendererCapabilitiesChanged

fun onRendererCapabilitiesChanged(renderer: Renderer!): Unit

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: Renderer!

The renderer whose capabilities changed.

onTrackSelectionsInvalidated

fun onTrackSelectionsInvalidated(): Unit

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