|
@@ -76,16 +76,18 @@ class AnimPlayer(val animView: IAnimView) {
|
|
|
isStartRunning = true
|
|
isStartRunning = true
|
|
|
prepareDecoder()
|
|
prepareDecoder()
|
|
|
if (decoder?.prepareThread() == false) {
|
|
if (decoder?.prepareThread() == false) {
|
|
|
- decoder?.onFailed(Constant.REPORT_ERROR_TYPE_CREATE_THREAD, Constant.ERROR_MSG_CREATE_THREAD)
|
|
|
|
|
isStartRunning = false
|
|
isStartRunning = false
|
|
|
|
|
+ decoder?.onFailed(Constant.REPORT_ERROR_TYPE_CREATE_THREAD, Constant.ERROR_MSG_CREATE_THREAD)
|
|
|
|
|
+ decoder?.onVideoComplete()
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
// 在线程中解析配置
|
|
// 在线程中解析配置
|
|
|
decoder?.renderThread?.handler?.post {
|
|
decoder?.renderThread?.handler?.post {
|
|
|
val result = configManager.parseConfig(fileContainer, enableVersion1, videoMode, fps)
|
|
val result = configManager.parseConfig(fileContainer, enableVersion1, videoMode, fps)
|
|
|
if (result != Constant.OK) {
|
|
if (result != Constant.OK) {
|
|
|
- decoder?.onFailed(result, Constant.getErrorMsg(result))
|
|
|
|
|
isStartRunning = false
|
|
isStartRunning = false
|
|
|
|
|
+ decoder?.onFailed(result, Constant.getErrorMsg(result))
|
|
|
|
|
+ decoder?.onVideoComplete()
|
|
|
return@post
|
|
return@post
|
|
|
}
|
|
}
|
|
|
ALog.i(TAG, "parse ${configManager.config}")
|
|
ALog.i(TAG, "parse ${configManager.config}")
|