We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47aea9a commit d3f806aCopy full SHA for d3f806a
readium/adapters/exoplayer/audio/src/main/java/org/readium/adapter/exoplayer/audio/ExoPlayerEngine.kt
@@ -210,6 +210,14 @@ public class ExoPlayerEngine private constructor(
210
private val sessionPlayer = object :
211
ForwardingPlayer(exoPlayer) {
212
213
+ override fun getAvailableCommands(): Player.Commands {
214
+ val commands = super.getAvailableCommands()
215
+ return Player.Commands.Builder()
216
+ .addAll(commands)
217
+ .remove(COMMAND_STOP) // STOP would unprepare the player.
218
+ .build()
219
+ }
220
+
221
override fun release() {
222
// This object does not own the ExoAudiobookPlayer instance, do not close it.
223
}
0 commit comments