...
|
...
|
@@ -79,14 +79,13 @@ public class QNLiveUtilService { |
|
|
|
|
|
//要fetch的url "http://yoho-live-down.yohobuy.com/yoho13/yoho.m3u8?starttime=1544425260&endtime=1544425440";
|
|
|
String fetchUrl = liveM3u8Url + "?starttime=" + startTime + "&endtime=" + endTime;
|
|
|
|
|
|
logger.info("bucketManager.fetch before fetchUrl is :{}.", fetchUrl);
|
|
|
|
|
|
if (null == liveM3u8Url) {
|
|
|
throw new PlatformException(400);
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
logger.info("bucketManager.fetch before fetchUrl is :{};BUCKET is :{};key is :{}.", fetchUrl, BUCKET, key);
|
|
|
|
|
|
FetchRet fetch = bucketManager.fetch(fetchUrl, BUCKET, key); //调用fetch方法抓取文件
|
|
|
|
|
|
logger.info("Resp is {} from bucketManager.fetch key is :{}, hash is :{},fsize is :{},mimeType is :{}.", fetch.key, key, fetch.hash, fetch.fsize, fetch.mimeType);
|
...
|
...
|
@@ -116,6 +115,8 @@ public class QNLiveUtilService { |
|
|
|
|
|
StringMap params = new StringMap().putWhen("force", 1, true).putNotEmpty("pipeline", PIPELINE).put("notifyURL", notifyUrl); //设置pipeline参数
|
|
|
try {
|
|
|
logger.info("method operater.pfop begin BUCKET is :{}, key is :{}, pfops is :{}, params is :{}.", BUCKET, key, pfops, params);
|
|
|
|
|
|
String persistId = operater.pfop(BUCKET, key, pfops, params);
|
|
|
|
|
|
logger.info("method transfer end fileKey is {}, mp4FileName is {} , persistid is {}", fileKey, mp4FileName, persistId);
|
...
|
...
|
|