|
@@ -295,6 +295,7 @@ public class PlayerInfoController {
|
|
|
String ext = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
|
String ext = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
|
|
video = String.format("/var/videos/%s-%s%s", new SimpleDateFormat("yyyy-MM-dd-hh-mm-ss").format(new Date()), randomCode, ext);
|
|
video = String.format("/var/videos/%s-%s%s", new SimpleDateFormat("yyyy-MM-dd-hh-mm-ss").format(new Date()), randomCode, ext);
|
|
|
file.transferTo(new File(video));
|
|
file.transferTo(new File(video));
|
|
|
|
|
+ Runtime.getRuntime().exec("chmod 777 " + video);
|
|
|
playerInfo.setVideo(video);
|
|
playerInfo.setVideo(video);
|
|
|
} else if ("screenshot".equalsIgnoreCase(file.getName())) {
|
|
} else if ("screenshot".equalsIgnoreCase(file.getName())) {
|
|
|
Random random = new Random();
|
|
Random random = new Random();
|