diff --git a/app/src/main/java/io/legado/app/service/AudioPlayService.kt b/app/src/main/java/io/legado/app/service/AudioPlayService.kt index b4b56f4d5..a79adb6e4 100644 --- a/app/src/main/java/io/legado/app/service/AudioPlayService.kt +++ b/app/src/main/java/io/legado/app/service/AudioPlayService.kt @@ -156,7 +156,11 @@ class AudioPlayService : BaseService(), handler.post(mpRunnable) } + /** + * 播放出错 + */ override fun onError(mp: MediaPlayer?, what: Int, extra: Int): Boolean { + postEvent(Bus.AUDIO_STATE, Status.STOP) launch { toast("error: $what $extra") }