|
|
@ -203,12 +203,15 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
|
|
|
|
|
|
|
|
override fun pauseReadAloud(pause: Boolean) { |
|
|
|
override fun pauseReadAloud(pause: Boolean) { |
|
|
|
super.pauseReadAloud(pause) |
|
|
|
super.pauseReadAloud(pause) |
|
|
|
mediaPlayer.pause() |
|
|
|
kotlin.runCatching { |
|
|
|
playIndexJob?.cancel() |
|
|
|
playIndexJob?.cancel() |
|
|
|
|
|
|
|
mediaPlayer.pause() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun resumeReadAloud() { |
|
|
|
override fun resumeReadAloud() { |
|
|
|
super.resumeReadAloud() |
|
|
|
super.resumeReadAloud() |
|
|
|
|
|
|
|
kotlin.runCatching { |
|
|
|
if (playingIndex == -1) { |
|
|
|
if (playingIndex == -1) { |
|
|
|
play() |
|
|
|
play() |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -216,6 +219,7 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
upPlayPos() |
|
|
|
upPlayPos() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun upPlayPos() { |
|
|
|
private fun upPlayPos() { |
|
|
|
playIndexJob?.cancel() |
|
|
|
playIndexJob?.cancel() |
|
|
|