|
@@ -119,11 +119,13 @@ public class CameraUtil {
|
|
|
String ph = "flv/" + DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD, new Date())
|
|
|
+ "/" + channel + "/"
|
|
|
+ UUID.randomUUID().toString() + ".flv";
|
|
|
- try {
|
|
|
- return historyPlay(list, ph);
|
|
|
- } catch (Exception e) {
|
|
|
- log.error(e.getMessage());
|
|
|
- e.printStackTrace();
|
|
|
+ if (!ObjectUtils.isEmpty(list)) {
|
|
|
+ try {
|
|
|
+ return historyPlay(list, ph);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error(e.getMessage());
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
}
|
|
|
return null;
|
|
|
}
|