setStatsOverlayEnabled

public void setStatsOverlayEnabled(boolean enabled)

Enables or disables the service-rendered stats overlay.

When enabled, the player service overlays playback statistics on top of video output. This is primarily supported for Media3-based playback.

Parameters

enabled

true to show the overlay, false to hide it.