ExoPlayer.AudioOffloadListener
@UnstableApi
public interface ExoPlayer.AudioOffloadListener
A listener for audio offload events.
Summary
Public methods |
|
|---|---|
default void |
onOffloadedPlayback(boolean isOffloadedPlayback)Called when the value of |
default void |
onSleepingForOffloadChanged(boolean isSleepingForOffload)Called when the value of |
Public methods
onOffloadedPlayback
default void onOffloadedPlayback(boolean isOffloadedPlayback)
Called when the value of 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.
onSleepingForOffloadChanged
default void onSleepingForOffloadChanged(boolean isSleepingForOffload)
Called when the value of isSleepingForOffload changes.
When isSleepingForOffload is true then, the player has paused its main loop to save power in offload scheduling mode.