| | |
| | | * @param streamInfo |
| | | * @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); |
| | | |
| | | /** |
| | | * 语音广播 |
| | |
| | | public void playbackControlCmd(Device device, StreamInfo streamInfo, String content,SipSubscribe.Event errorEvent, SipSubscribe.Event okEvent) { |
| | | try { |
| | | Request request = headerProvider.createInfoRequest(device, streamInfo, content); |
| | | if (request == null) { |
| | | if (request == null) { |
| | | return; |
| | | } |
| | | logger.info(request.toString()); |
| | |
| | | } |
| | | Device device1 = storager.queryVideoDevice(streamInfo.getDeviceID()); |
| | | cmder.playbackControlCmd(device1,streamInfo,new String(evt.getRequest().getRawContent()),eventResult -> { |
| | | // 失败的回复 |
| | | // 失败的回复 |
| | | try { |
| | | responseAck(evt, eventResult.statusCode, eventResult.msg); |
| | | } catch (SipException e) { |