1、新增视频回放、视频回放控制Template

2、修复直播控制指令BUG
This commit is contained in:
QingObject
2023-04-28 14:39:50 +08:00
parent 97b673d6ad
commit b1fb1c4616
12 changed files with 744 additions and 13 deletions

View File

@@ -76,13 +76,13 @@ public enum SessionManager {
Session session = this.get(cmd.getDevId());
if (session == null) {
log.error("DevId: {} not online!", cmd.getDevId());
return "-1";
return null;
}
String requestKey = requestKey(cmd.getDevId(), cmd.getRespId(), cmd.getPackageNo());
SynchronousQueue<String> subscribe = subscribe(requestKey);
if (subscribe == null) {
log.error("DevId: {} key:{} send repaid", cmd.getDevId(), requestKey);
return "-1";
return null;
}
session.writeObject(cmd);
try {
@@ -105,7 +105,7 @@ public enum SessionManager {
log.error("{}", e.getMessage(), e);
}
}
log.warn("未找到对应回复指令,key:{} 消息:{} ", requestKey, data);
log.warn("Not find response,key:{} data:{} ", requestKey, data);
return false;
}