|
@@ -356,8 +356,10 @@ public class MaterialCutFrameServiceImpl extends ServiceImpl<MaterialCutFrameMap
|
|
private void getCut(String materialId, String videoUrl, String loadImage, Integer count) {
|
|
private void getCut(String materialId, String videoUrl, String loadImage, Integer count) {
|
|
try {
|
|
try {
|
|
Map<String, Object> coverMap = CloudVideoProcessUtil.videoCutFrameHandle(videoUrl, loadImage);
|
|
Map<String, Object> coverMap = CloudVideoProcessUtil.videoCutFrameHandle(videoUrl, loadImage);
|
|
- if (Check.isNullMap(coverMap) && count < 4) {
|
|
|
|
|
|
+ if (count < 4) {
|
|
getCut(materialId, videoUrl, loadImage, count + 1);
|
|
getCut(materialId, videoUrl, loadImage, count + 1);
|
|
|
|
+ } else {
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
|
|
|
|
if (Check.isNullMap(coverMap)) {
|
|
if (Check.isNullMap(coverMap)) {
|