mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Improve OnExperimentalOffloadSchedulingEnabled name
For consistency with onShuffleModeEnabledChanged. PiperOrigin-RevId: 325820951
This commit is contained in:
parent
63faf51c7e
commit
192c1e5dee
3 changed files with 4 additions and 4 deletions
|
|
@ -612,8 +612,8 @@ public interface ExoPlayer extends Player {
|
|||
* <p>While offload scheduling is enabled, player events may be delivered severely delayed and
|
||||
* apps should not interact with the player. When returning to the foreground, disable offload
|
||||
* scheduling and wait for {@link
|
||||
* Player.EventListener#onExperimentalOffloadSchedulingEnabled(boolean)} to be called with {@code
|
||||
* offloadSchedulingEnabled = false} before interacting with the player.
|
||||
* Player.EventListener#onExperimentalOffloadSchedulingEnabledChanged(boolean)} to be called with
|
||||
* {@code offloadSchedulingEnabled = false} before interacting with the player.
|
||||
*
|
||||
* <p>This mode should save significant power when the phone is playing offload audio with the
|
||||
* screen off.
|
||||
|
|
|
|||
|
|
@ -1488,7 +1488,7 @@ import java.util.concurrent.TimeoutException;
|
|||
invokeAll(
|
||||
listenerSnapshot,
|
||||
listener ->
|
||||
listener.onExperimentalOffloadSchedulingEnabled(
|
||||
listener.onExperimentalOffloadSchedulingEnabledChanged(
|
||||
playbackInfo.offloadSchedulingEnabled));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -611,7 +611,7 @@ public interface Player {
|
|||
*
|
||||
* <p>This method is experimental, and will be renamed or removed in a future release.
|
||||
*/
|
||||
default void onExperimentalOffloadSchedulingEnabled(boolean offloadSchedulingEnabled) {}
|
||||
default void onExperimentalOffloadSchedulingEnabledChanged(boolean offloadSchedulingEnabled) {}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue