首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >视频审核失败,总是返回空值, 状态显示 status: "PROCESSING" ?

视频审核失败,总是返回空值, 状态显示 status: "PROCESSING" ?

提问于 2020-08-04 00:26:16
回答 0关注 0查看 294

@PostMapping("/describeVideoTask")

public Object DescribeVideoTask(

@RequestParam (name = "vodTaskId") String vodTaskId

) {

System.out.println("参数");

System.out.println(vodTaskId);

try{

Credential cred = new Credential("APPID", "SECRER");

HttpProfile httpProfile = new HttpProfile();

httpProfile.setEndpoint("ticm.tencentcloudapi.com");

ClientProfile clientProfile = new ClientProfile();

clientProfile.setHttpProfile(httpProfile);

TicmClient client = new TicmClient(cred, "ap-beijing", clientProfile);

String params = "{\"VodTaskId\":\""+vodTaskId+"\"}";

System.out.println(params);

DescribeVideoTaskRequest req = DescribeVideoTaskRequest.fromJsonString(params, DescribeVideoTaskRequest.class);

System.out.println(req);

DescribeVideoTaskResponse resp = client.DescribeVideoTask(req);

System.out.println(DescribeVideoTaskResponse.toJsonString(resp));

return resp;

} catch (TencentCloudSDKException e) {

System.out.println(e.toString());

}

return null;

}

加上变量就不行,返回空值,而且状态是 status: "PROCESSING"

String params = "{\"VodTaskId\":\""+vodTaskId+"\"}";

把vodTaskId写死就返回正常,求大神指点

String params = "{\"VodTaskId\":\"1254418846-procedurev2-5c4568825e168676014e5f23f03a20b4t0\"}";

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档