|
|
@@ -480,14 +480,13 @@ public class UserMouldVideoServiceImpl implements UserMouldVideoService { |
|
|
|
this.saveOrUpdate(videoUpd); |
|
|
|
|
|
|
|
//实时判断上传状态 |
|
|
|
// for (int i = 0;i <= 30; i++){ |
|
|
|
// try { |
|
|
|
// Thread.sleep(1000); |
|
|
|
// } catch (InterruptedException e) { |
|
|
|
// e.printStackTrace(); |
|
|
|
// } |
|
|
|
for (int i = 0;i <= 300; i++){ |
|
|
|
try { |
|
|
|
Thread.sleep(1000); |
|
|
|
} catch (InterruptedException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
String progress = videoFactory.getExcutor(videoType).getVedioUploadProgress(result.getVideoId()); |
|
|
|
while(true) { |
|
|
|
if (progress.equals("complete")) { |
|
|
|
VideUploadResult videoDetail = videoFactory.getExcutor(videoType).getVideoDetailWithCache(result.getVideoId(),true); |
|
|
|
if (videoDetail.isSuccess()){ |
|
|
@@ -512,7 +511,6 @@ public class UserMouldVideoServiceImpl implements UserMouldVideoService { |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|