|
|
@ -124,8 +124,8 @@ class AudioPlayService : BaseService(), |
|
|
|
override fun onPrepared(mp: MediaPlayer?) { |
|
|
|
override fun onPrepared(mp: MediaPlayer?) { |
|
|
|
if (pause) return |
|
|
|
if (pause) return |
|
|
|
mp?.start() |
|
|
|
mp?.start() |
|
|
|
postEvent(Bus.AUDIO_PROGRESS, mp?.duration) |
|
|
|
postEvent(Bus.AUDIO_SIZE, mp?.duration) |
|
|
|
handler.postDelayed(mpRunnable, 1000) |
|
|
|
handler.post(mpRunnable) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onError(mp: MediaPlayer?, what: Int, extra: Int): Boolean { |
|
|
|
override fun onError(mp: MediaPlayer?, what: Int, extra: Int): Boolean { |
|
|
|