|
@@ -261,6 +261,12 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService { |
|
|
AtomicInteger integer = new AtomicInteger(30); |
|
|
AtomicInteger integer = new AtomicInteger(30); |
|
|
while (true){ |
|
|
while (true){ |
|
|
String progress = videoFactory.getExcutor(videoType).getVedioUploadProgress(result.getVideoId()); |
|
|
String progress = videoFactory.getExcutor(videoType).getVedioUploadProgress(result.getVideoId()); |
|
|
|
|
|
try { |
|
|
|
|
|
Thread.sleep(1000); |
|
|
|
|
|
} catch (InterruptedException e) { |
|
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (progress.equals("complete")) { |
|
|
if (progress.equals("complete")) { |
|
|
mouldVideo.setVideoStatus(EnumVideoStatus.upload_success.getCode()); |
|
|
mouldVideo.setVideoStatus(EnumVideoStatus.upload_success.getCode()); |
|
|
this.updateById(mouldVideo); |
|
|
this.updateById(mouldVideo); |
|
|