优化短的录像文件的下载

This commit is contained in:
648540858
2024-09-13 15:43:22 +08:00
parent 875285418b
commit 614ff4c71e
4 changed files with 48 additions and 20 deletions

View File

@@ -355,24 +355,6 @@ public class StreamPushServiceImpl implements IStreamPushService {
}
}
// if (!changedStreamPushList.isEmpty()) {
// String type = "PUSH";
// int runLimit = 300;
// if (changedStreamPushList.size() > runLimit) {
// for (int i = 0; i < changedStreamPushList.size(); i += runLimit) {
// int toIndex = i + runLimit;
// if (i + runLimit > changedStreamPushList.size()) {
// toIndex = changedStreamPushList.size();
// }
// List<StreamPush> streamPushItemsSub = changedStreamPushList.subList(i, toIndex);
// streamPushMapper.delAll(streamPushItemsSub);
// }
// }else {
// streamPushMapper.delAll(changedStreamPushList);
// }
//
// }
Collection<MediaInfo> mediaInfos = streamInfoPushItemMap.values();
if (!mediaInfos.isEmpty()) {
String type = "PUSH";