648540858
2023-05-25 30ae9e929fad80f624ab632c53081db3d2dc9aec
src/main/java/com/genersoft/iot/vmp/service/redisMsg/RedisPushStreamStatusMsgListener.java
@@ -3,6 +3,7 @@
import com.alibaba.fastjson2.JSON;
import com.genersoft.iot.vmp.common.VideoManagerConstants;
import com.genersoft.iot.vmp.conf.DynamicTask;
import com.genersoft.iot.vmp.conf.UserSetting;
import com.genersoft.iot.vmp.service.IStreamPushService;
import com.genersoft.iot.vmp.service.bean.PushStreamStatusChangeFromRedisDto;
import com.genersoft.iot.vmp.storager.IRedisCatchStorage;
@@ -37,6 +38,9 @@
    @Autowired
    private DynamicTask dynamicTask;
    @Autowired
    private UserSetting userSetting;
@@ -89,6 +93,7 @@
    @Override
    public void run(ApplicationArguments args) throws Exception {
        if (!userSetting.isUsePushingAsStatus()) {
        //  启动时设置所有推流通道离线,发起查询请求
        redisCatchStorage.sendStreamPushRequestedMsgForStatus();
        dynamicTask.startDelay(VideoManagerConstants.VM_MSG_GET_ALL_ONLINE_REQUESTED, ()->{
@@ -97,5 +102,6 @@
            streamPushService.allStreamOffline();
        }, 5000);
    }
    }
}