| | |
| | | package com.genersoft.iot.vmp.media.zlm; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.genersoft.iot.vmp.conf.MediaServerConfig; |
| | | import com.genersoft.iot.vmp.media.zlm.dto.StreamProxyItem; |
| | | import com.genersoft.iot.vmp.media.zlm.dto.StreamPushItem; |
| | | import com.genersoft.iot.vmp.gb28181.bean.GbStream; |
| | |
| | | public void clearAllSessions() { |
| | | logger.info("清空所有国标相关的session"); |
| | | JSONObject allSessionJSON = zlmresTfulUtils.getAllSession(); |
| | | MediaServerConfig mediaInfo = redisCatchStorage.getMediaInfo(); |
| | | ZLMServerConfig mediaInfo = redisCatchStorage.getMediaInfo(); |
| | | HashSet<String> allLocalPorts = new HashSet(); |
| | | if (allSessionJSON.getInteger("code") == 0) { |
| | | JSONArray data = allSessionJSON.getJSONArray("data"); |