mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
bd888d0c37
commit
d3b5d9c2b8
@ -281,6 +281,9 @@ class HttpReadAloudService : BaseReadAloudService(),
|
||||
return@launch
|
||||
}
|
||||
val speakTextLength = contentList[nowSpeak].length
|
||||
if (speakTextLength <= 0) {
|
||||
return@launch
|
||||
}
|
||||
val sleep = mediaPlayer.duration / speakTextLength
|
||||
val start = speakTextLength * mediaPlayer.currentPosition / mediaPlayer.duration
|
||||
for (i in start..contentList[nowSpeak].length) {
|
||||
|
Loading…
Reference in New Issue
Block a user