优化
This commit is contained in:
@@ -270,6 +270,7 @@ object AudioPlay : CoroutineScope by MainScope() {
|
|||||||
fun skipTo(index: Int) {
|
fun skipTo(index: Int) {
|
||||||
Coroutine.async {
|
Coroutine.async {
|
||||||
stopPlay()
|
stopPlay()
|
||||||
|
if (index in 0..<simulatedChapterSize) {
|
||||||
durChapterIndex = index
|
durChapterIndex = index
|
||||||
durChapterPos = 0
|
durChapterPos = 0
|
||||||
durPlayUrl = ""
|
durPlayUrl = ""
|
||||||
@@ -277,6 +278,7 @@ object AudioPlay : CoroutineScope by MainScope() {
|
|||||||
loadPlayUrl()
|
loadPlayUrl()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun prev() {
|
fun prev() {
|
||||||
Coroutine.async {
|
Coroutine.async {
|
||||||
|
|||||||
Reference in New Issue
Block a user