mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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
|
* <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
|
* apps should not interact with the player. When returning to the foreground, disable offload
|
||||||
* scheduling and wait for {@link
|
* scheduling and wait for {@link
|
||||||
* Player.EventListener#onExperimentalOffloadSchedulingEnabled(boolean)} to be called with {@code
|
* Player.EventListener#onExperimentalOffloadSchedulingEnabledChanged(boolean)} to be called with
|
||||||
* offloadSchedulingEnabled = false} before interacting with the player.
|
* {@code offloadSchedulingEnabled = false} before interacting with the player.
|
||||||
*
|
*
|
||||||
* <p>This mode should save significant power when the phone is playing offload audio with the
|
* <p>This mode should save significant power when the phone is playing offload audio with the
|
||||||
* screen off.
|
* screen off.
|
||||||
|
|
|
||||||
|
|
@ -1488,7 +1488,7 @@ import java.util.concurrent.TimeoutException;
|
||||||
invokeAll(
|
invokeAll(
|
||||||
listenerSnapshot,
|
listenerSnapshot,
|
||||||
listener ->
|
listener ->
|
||||||
listener.onExperimentalOffloadSchedulingEnabled(
|
listener.onExperimentalOffloadSchedulingEnabledChanged(
|
||||||
playbackInfo.offloadSchedulingEnabled));
|
playbackInfo.offloadSchedulingEnabled));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -611,7 +611,7 @@ public interface Player {
|
||||||
*
|
*
|
||||||
* <p>This method is experimental, and will be renamed or removed in a future release.
|
* <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