|
|
@ -41,6 +41,7 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
|
|
|
|
|
|
|
|
override fun onDestroy() { |
|
|
|
override fun onDestroy() { |
|
|
|
super.onDestroy() |
|
|
|
super.onDestroy() |
|
|
|
|
|
|
|
job?.cancel() |
|
|
|
mediaPlayer.release() |
|
|
|
mediaPlayer.release() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -48,6 +49,7 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
mediaPlayer.reset() |
|
|
|
mediaPlayer.reset() |
|
|
|
job?.cancel() |
|
|
|
job?.cancel() |
|
|
|
playingIndex = -1 |
|
|
|
playingIndex = -1 |
|
|
|
|
|
|
|
nowSpeak = 0 |
|
|
|
super.newReadAloud(dataKey, play) |
|
|
|
super.newReadAloud(dataKey, play) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|