| | |
| | | DeviceChannel deviceChannel = new DeviceChannel();
|
| | | deviceChannel.setName(channelName);
|
| | | deviceChannel.setChannelId(channelDeviceId);
|
| | | // ONLINE OFFLINE 部分NVR的兼容性处理
|
| | | // ONLINE OFFLINE HIKVISION DS-7716N-E4 NVR的兼容性处理
|
| | | if (status.equals("ON") || status.equals("On") || status.equals("ONLINE")) {
|
| | | deviceChannel.setStatus(1);
|
| | | }
|
| | |
| | | StreamInfo streamInfo = storager.queryPlaybackByDevice(deviceId, "*");
|
| | | if (streamInfo != null) {
|
| | | storager.stopPlayback(streamInfo);
|
| | | cmder.streamByeCmd(streamInfo.getSsrc());
|
| | | cmder.streamByeCmd(streamInfo.getStreamId());
|
| | | }
|
| | | }
|
| | | } catch (ParseException | SipException | InvalidArgumentException | DocumentException e) {
|