|
|
|
@@ -5,6 +5,7 @@ import java.io.FileInputStream; |
|
|
|
import java.io.FileNotFoundException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.InputStream; |
|
|
|
import java.util.UUID; |
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Qualifier; |
|
|
|
@@ -70,7 +71,7 @@ public class AliyunVideoExcutor implements VideoExcutor { |
|
|
|
VideUploadResult result = new VideUploadResult(); |
|
|
|
UploadStreamResponse response; |
|
|
|
try { |
|
|
|
response = AliyunVedioUpload.uploadStream(config.getAccessKeyId(), config.getAccessKeySecret(),config.getRegionId(), title, "", inputStream,redisTemplate); |
|
|
|
response = AliyunVedioUpload.uploadStream(config.getAccessKeyId(), config.getAccessKeySecret(),config.getRegionId(), title, UUID.randomUUID().toString().replace("-",""), inputStream,redisTemplate); |
|
|
|
if (response.isSuccess()) { |
|
|
|
result.setVideoId(response.getVideoId()); |
|
|
|
result.setVideoUrl(getUrlByVeidoId(response.getVideoId())); |
|
|
|
|