更新readme

This commit is contained in:
64850858
2021-07-14 16:06:31 +08:00
parent e48ef997c0
commit 367ec111e4
5 changed files with 434 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
package com.genersoft.iot.vmp.conf;
import com.genersoft.iot.vmp.gb28181.transmit.cmd.impl.SIPCommander;
import com.genersoft.iot.vmp.storager.IRedisCatchStorage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
public class WVPTimerTask {
@Autowired
private IRedisCatchStorage redisCatchStorage;
@Autowired
private SipConfig sipConfig;
@Autowired
private MediaConfig mediaConfig;
@Scheduled(cron="0/2 * * * * ? ") //每3秒执行一次
public void execute(){
// redisCatchStorage.updateWVPInfo();
}
}

View File

@@ -1,5 +1,6 @@
package com.genersoft.iot.vmp.storager;
import com.alibaba.fastjson.JSONObject;
import com.genersoft.iot.vmp.common.StreamInfo;
import com.genersoft.iot.vmp.media.zlm.ZLMServerConfig;
import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform;
@@ -117,4 +118,9 @@ public interface IRedisCatchStorage {
* 设置所有设备离线
*/
void outlineForAll();
/**
* 在redis添加wvp的信息
*/
void updateWVPInfo(JSONObject jsonObject);
}

View File

@@ -1,5 +1,6 @@
package com.genersoft.iot.vmp.storager.impl;
import com.alibaba.fastjson.JSONObject;
import com.genersoft.iot.vmp.common.StreamInfo;
import com.genersoft.iot.vmp.common.VideoManagerConstants;
import com.genersoft.iot.vmp.media.zlm.ZLMServerConfig;
@@ -302,4 +303,9 @@ public class RedisCatchStorageImpl implements IRedisCatchStorage {
redis.del(key);
}
}
@Override
public void updateWVPInfo(JSONObject jsonObject) {
}
}