实现国标录像级联播放,优化点播流程,加快点播速度

This commit is contained in:
648540858
2022-02-27 20:01:31 +08:00
parent 10f776678e
commit e94b99d11c
19 changed files with 208 additions and 100 deletions

View File

@@ -122,7 +122,6 @@ public class PlayServiceImpl implements IPlayService {
// 点播结束时调用截图接口
try {
String classPath = ResourceUtils.getURL("classpath:").getPath();
// System.out.println(classPath);
// 兼容打包为jar的class路径
if(classPath.contains("jar")) {
classPath = classPath.substring(0, classPath.lastIndexOf("."));
@@ -238,11 +237,11 @@ public class PlayServiceImpl implements IPlayService {
}
@Override
public void onPublishHandlerForPlay(MediaServerItem mediaServerItem, JSONObject resonse, String deviceId, String channelId, String uuid) {
public void onPublishHandlerForPlay(MediaServerItem mediaServerItem, JSONObject response, String deviceId, String channelId, String uuid) {
RequestMessage msg = new RequestMessage();
msg.setId(uuid);
msg.setKey(DeferredResultHolder.CALLBACK_CMD_PLAY + deviceId + channelId);
StreamInfo streamInfo = onPublishHandler(mediaServerItem, resonse, deviceId, channelId, uuid);
StreamInfo streamInfo = onPublishHandler(mediaServerItem, response, deviceId, channelId, uuid);
if (streamInfo != null) {
DeviceChannel deviceChannel = storager.queryChannel(deviceId, channelId);
if (deviceChannel != null) {