优化
This commit is contained in:
@@ -127,6 +127,7 @@ object AudioPlay : CoroutineScope by MainScope() {
|
|||||||
}
|
}
|
||||||
}.onError {
|
}.onError {
|
||||||
AppLog.put("获取资源链接出错\n$it", it, true)
|
AppLog.put("获取资源链接出错\n$it", it, true)
|
||||||
|
upLoading(false)
|
||||||
}.onFinally {
|
}.onFinally {
|
||||||
removeLoading(index)
|
removeLoading(index)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -360,6 +360,7 @@ class AudioPlayService : BaseService(),
|
|||||||
super.onPlayerError(error)
|
super.onPlayerError(error)
|
||||||
AudioPlay.status = Status.STOP
|
AudioPlay.status = Status.STOP
|
||||||
postEvent(EventBus.AUDIO_STATE, Status.STOP)
|
postEvent(EventBus.AUDIO_STATE, Status.STOP)
|
||||||
|
AudioPlay.upLoading(false)
|
||||||
val errorMsg = "音频播放出错\n${error.errorCodeName} ${error.errorCode}"
|
val errorMsg = "音频播放出错\n${error.errorCodeName} ${error.errorCode}"
|
||||||
AppLog.put(errorMsg, error)
|
AppLog.put(errorMsg, error)
|
||||||
toastOnUi(errorMsg)
|
toastOnUi(errorMsg)
|
||||||
|
|||||||
Reference in New Issue
Block a user