延长直播在线人数检测时间

This commit is contained in:
董宏宇
2021-11-05 10:43:52 +08:00
parent 897d95a4da
commit f948cd4a9b
3 changed files with 11 additions and 28 deletions

View File

@@ -30,7 +30,7 @@ public class LiveStreamManagerImpl implements ILiveStreamManager {
// 循环上报摄像头可直播状态间隔时间
private static final int PUSH_CAM_TIME = 10 * 1000;
// 检测房间在线人数,<=1代表无人观看即可以关闭推流1个人代表自己
private static final int PUSH_CHECK_TIME = 60 * 1000;
private static final int PUSH_CHECK_TIME = 120 * 1000;
private static volatile int sCam1LiveStatus = 0, sCam2LiveStatus = 0;
private static volatile int sCam1AvailableStatus = 0, sCam2AvailableStatus = 0;
private static final int PUSH_START = 0; // 开始