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