[6.2.4]增加MediaPlayer IllegalStateException 异常处理

This commit is contained in:
xuxinchao
2023-12-07 15:04:09 +08:00
parent e89ac5fb8e
commit 5d79938c43

View File

@@ -211,7 +211,11 @@ class BadCaseManagerView @JvmOverloads constructor(
//延迟播放
Handler().postDelayed({
//音频文件播放
Audition.getInstance().playOrStop("${audioSavePath}${key}.wav")
try {
Audition.getInstance().playOrStop("${audioSavePath}${key}.wav")
}catch (e: Exception){
CallerLogger.i(M_DEVA + TAG,"playOrStop=${e}")
}
}, 1500)
}