private static final Logger log = LoggerFactory.getLogger(VodClipTest.class);
/**
* 合并视频
* @throws Exception
* @throws NoSuchAlgorithmException
*/
@Test
public void testCombineVideo() throws Exception, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String secretKey = super.secretKey;
String userId = super.userId;
String ptime = String.valueOf(System.currentTimeMillis());
//业务参数
String url = "http://api.polyv.net/v2/video/"+userId+"/concat";
String vids = "1b448be323615635294a548b3c8a9953_1,1b448be323d7e4c49d5634abd5af0bcb_1";
String title="合并美食视频";
String cataId = String.valueOf("1602671097888");
String luping = String.valueOf(1);
Map<String, String> requestMap = new HashMap<>();
requestMap.put("userId", userId);
requestMap.put("ptime", ptime);
requestMap.put("vids", vids);
requestMap.put("title", title);
requestMap.put("cataId", cataId);
requestMap.put("luping", luping);
requestMap.put("sign", VodSignUtil.getSign(requestMap, secretKey));
String response = HttpUtil.postFormBody(url,requestMap);
log.debug("测试合并视频,{}", response);
//do somethings
}