|
|
@@ -102,9 +102,8 @@ public class AliyunVideoExcutor implements VideoExcutor { |
|
|
|
public VideUploadResult uploadVideoPath(String title, String url) { |
|
|
|
VideUploadResult result = new VideUploadResult(); |
|
|
|
try { |
|
|
|
URLConnection.guessContentTypeFromName(url); |
|
|
|
InputStream inputStream = new URL(url).openStream(); |
|
|
|
|
|
|
|
return this.uploadVideoStream(title,inputStream,".mp4"); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("aliyun uploadLocalVideo error",e); |
|
|
|
result.setSuccess(false); |
|
|
|