完成动画在设备上播放和切换

This commit is contained in:
xsl
2025-11-01 14:56:03 +08:00
parent 263a061d27
commit 6495a27658
8 changed files with 92 additions and 76 deletions
@@ -1,4 +1,5 @@
package com.hmwl.face_sdk;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.ArrayList;
@@ -12,7 +13,11 @@ public class Motion {
try {
JSONObject jsonObject = new JSONObject();
jsonObject.put("type", type);
jsonObject.put("png_names", png_names);
JSONArray ja = new JSONArray();
for(int i = 0; i < png_names.size(); ++i){
ja.put(png_names.get(i));
}
jsonObject.put("png_names", ja);
return jsonObject;
} catch (Exception e) {
e.printStackTrace();