Podlite 1.12: set speed and skipping silences before the audio opens; reopen on a skip toggle
ExoPlayer 2.18 sets up skipping silences when it opens the audio, so the engine now gets both settings before prepare, and turning the option on or off while an episode plays reopens it at the same spot. Tested on the Xperia J against test/mock_abs.py: 2x speed, silences skipped, the toggle mid-play, notification buttons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
666a7eb8cd
commit
c771aa01bd
2 files changed
+18
-2
No files matched your search
@@ -121,6 +121,7 @@ final class ExoEngine implements Engine {
|
||||
|
||||
public void setVolume(float v) { player.setVolume(v); }
|
||||
|
||||
/** Before prepare for skipping silences to work: ExoPlayer 2.18 switches it on only when it sets up the audio. */
|
||||
public void setSpeed(float speed, boolean skipSilence) {
|
||||
player.setPlaybackParameters(new PlaybackParameters(speed));
|
||||
player.setSkipSilenceEnabled(skipSilence);
|
||||
|
||||
Reference in new issue
Block a user