Skip to content

Commit c4abf41

Browse files
committed
fix(tts): add missing supported timeline command to TtsSessionAdapter
without this command the session-adapter didn't properly report the current timeline to a media3.MediaSession
1 parent 71074ea commit c4abf41

File tree

1 file changed

+2
-1
lines changed
  • readium/navigators/media/tts/src/main/java/org/readium/navigator/media/tts/session

1 file changed

+2
-1
lines changed

readium/navigators/media/tts/src/main/java/org/readium/navigator/media/tts/session/TtsSessionAdapter.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ internal class TtsSessionAdapter<E : TtsEngine.Error>(
157157
COMMAND_SET_SPEED_AND_PITCH,
158158
COMMAND_GET_CURRENT_MEDIA_ITEM,
159159
COMMAND_GET_METADATA,
160-
COMMAND_GET_TEXT
160+
COMMAND_GET_TEXT,
161+
COMMAND_GET_TIMELINE
161162
).build()
162163

163164
override fun getApplicationLooper(): Looper {

0 commit comments

Comments
 (0)