Interface ExoPlayer.AudioOffloadListener

  • Enclosing interface:
    ExoPlayer

    public static interface ExoPlayer.AudioOffloadListener
    A listener for audio offload events.

    This class is experimental, and might be renamed, moved or removed in a future release.

    • Method Detail

      • onExperimentalOffloadSchedulingEnabledChanged

        default void onExperimentalOffloadSchedulingEnabledChanged​(boolean offloadSchedulingEnabled)
        Called when the player has started or stopped offload scheduling using ExoPlayer.experimentalSetOffloadSchedulingEnabled(boolean).

        This method is experimental, and will be renamed or removed in a future release.

      • onExperimentalSleepingForOffloadChanged

        default void onExperimentalSleepingForOffloadChanged​(boolean sleepingForOffload)
        Called when the player has started or finished sleeping for offload.

        This method is experimental, and will be renamed or removed in a future release.

      • onExperimentalOffloadedPlayback

        default void onExperimentalOffloadedPlayback​(boolean offloadedPlayback)
        Called when the value of AudioTrack.isOffloadedPlayback() changes.

        This should not be generally required to be acted upon. But when offload is critical for efficiency, or audio features (gapless, playback speed), this will let the app know.

        This method is experimental, and will be renamed or removed in a future release.