|
|
@ -203,17 +203,21 @@ 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() |
|
|
|
if (playingIndex == -1) { |
|
|
|
kotlin.runCatching { |
|
|
|
play() |
|
|
|
if (playingIndex == -1) { |
|
|
|
} else { |
|
|
|
play() |
|
|
|
mediaPlayer.start() |
|
|
|
} else { |
|
|
|
upPlayPos() |
|
|
|
mediaPlayer.start() |
|
|
|
|
|
|
|
upPlayPos() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|