在线朗读采用计算平均朗读速度及时翻页

pull/1336/head
gedoor 3 years ago
parent b4e3287cf7
commit c0b45728d6
  1. 2
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

@ -222,6 +222,7 @@ class HttpReadAloudService : BaseReadAloudService(),
}
private fun upPlayPos() {
playIndexJob?.cancel()
textChapter?.let {
playIndexJob = launch {
val speakTextLength = contentList[nowSpeak].length
@ -254,7 +255,6 @@ class HttpReadAloudService : BaseReadAloudService(),
super.play()
if (pause) return
mediaPlayer.start()
playIndexJob?.cancel()
upPlayPos()
}

Loading…
Cancel
Save