Browse Source

feat: 融合动画没有设置资源获取接口,也可以作为普通视频进行播放

hexleo 5 years ago
parent
commit
fea1c311f6

+ 3 - 2
Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/mix/MixAnimPlugin.kt

@@ -52,8 +52,9 @@ class MixAnimPlugin(val player: AnimPlayer): IAnimPlugin {
     override fun onConfigCreate(config: AnimConfig): Int {
         if (!config.isMix) return Constant.OK
         if (resourceRequest == null) {
-            ALog.i(TAG, "IFetchResource is empty")
-            return Constant.REPORT_ERROR_TYPE_CONFIG_PLUGIN_MIX
+            ALog.e(TAG, "IFetchResource is empty")
+            // 没有设置IFetchResource 当成普通视频播放
+            return Constant.OK
         }
         // step 1 parse src
         parseSrc(config)