|
@@ -19,6 +19,7 @@ import com.github.pagehelper.PageInfo;
|
|
|
import com.tencentcloudapi.mps.v20190612.models.DescribeTaskDetailResponse;
|
|
|
import it.sauronsoftware.jave.Encoder;
|
|
|
import it.sauronsoftware.jave.EncoderException;
|
|
|
+import it.sauronsoftware.jave.MultimediaInfo;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
@@ -399,12 +400,12 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
|
|
|
String url = materialInfo.getUrl();
|
|
|
log.info("replaceUrl:{}", url);
|
|
|
String localUrl = null;
|
|
|
- it.sauronsoftware.jave.MultimediaInfo m = null;
|
|
|
+ MultimediaInfo m = null;
|
|
|
FileInputStream fis = null;
|
|
|
try {
|
|
|
localUrl = LoadFileUtil.downLoadFromUrl(url, downloadUrl);
|
|
|
File file = new File(localUrl);
|
|
|
- it.sauronsoftware.jave.Encoder encoder = new Encoder();
|
|
|
+ Encoder encoder = new Encoder();
|
|
|
m = encoder.getInfo(file);
|
|
|
long duration = m.getDuration();
|
|
|
long secondDuration = duration / 1000;
|