|
|
|
@ -221,12 +221,12 @@ public class video_style_transform {
|
|
|
|
|
|
|
|
|
|
while (retryCount < maxRetries) {
|
|
|
|
|
JSONObject result = queryTaskStatus(taskId);
|
|
|
|
|
String status = result.getJSONObject("output").getString("status");
|
|
|
|
|
String status = result.getJSONObject("output").getString("task_status");
|
|
|
|
|
log.info("任务状态: {}", status);
|
|
|
|
|
|
|
|
|
|
if ("SUCCEEDED".equals(status)) {
|
|
|
|
|
// 任务成功,获取视频URL
|
|
|
|
|
resultVideoUrl = result.getJSONObject("output").getString("url");
|
|
|
|
|
resultVideoUrl = result.getJSONObject("output").getString("output_video_url");
|
|
|
|
|
log.info("生成的视频URL: {}", resultVideoUrl);
|
|
|
|
|
break;
|
|
|
|
|
} else if ("FAILED".equals(status)) {
|
|
|
|
|