添加国标级联录像控制功能

pull/530/head
mk1990 2022-06-22 16:39:07 +08:00
parent 5e5437b630
commit c239ee277c
3 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ public interface ISIPCommander {
* @param streamInfo * @param streamInfo
* @param content * @param content
*/ */
void playbackControlCmd(Device device, StreamInfo streamInfo, String content,SipSubscribe.Event errorEvent, SipSubscribe.Event okEvent); void playbackControlCmd(Device device, StreamInfo streamInfo, String content,SipSubscribe.Event errorEvent, SipSubscribe.Event okEvent);
/** /**
* 广 * 广

View File

@ -1833,7 +1833,7 @@ public class SIPCommander implements ISIPCommander {
public void playbackControlCmd(Device device, StreamInfo streamInfo, String content,SipSubscribe.Event errorEvent, SipSubscribe.Event okEvent) { public void playbackControlCmd(Device device, StreamInfo streamInfo, String content,SipSubscribe.Event errorEvent, SipSubscribe.Event okEvent) {
try { try {
Request request = headerProvider.createInfoRequest(device, streamInfo, content); Request request = headerProvider.createInfoRequest(device, streamInfo, content);
if (request == null) { if (request == null) {
return; return;
} }
logger.info(request.toString()); logger.info(request.toString());

View File

@ -106,7 +106,7 @@ public class InfoRequestProcessor extends SIPRequestProcessorParent implements I
} }
Device device1 = storager.queryVideoDevice(streamInfo.getDeviceID()); Device device1 = storager.queryVideoDevice(streamInfo.getDeviceID());
cmder.playbackControlCmd(device1,streamInfo,new String(evt.getRequest().getRawContent()),eventResult -> { cmder.playbackControlCmd(device1,streamInfo,new String(evt.getRequest().getRawContent()),eventResult -> {
// 失败的回复 // 失败的回复
try { try {
responseAck(evt, eventResult.statusCode, eventResult.msg); responseAck(evt, eventResult.statusCode, eventResult.msg);
} catch (SipException e) { } catch (SipException e) {