支持从redis消息更新推流设备状态

This commit is contained in:
648540858
2022-07-12 17:33:17 +08:00
parent 0b1cae75fe
commit 81f69eb6f4
10 changed files with 210 additions and 17 deletions

View File

@@ -292,7 +292,7 @@ public class ZLMRTPServerFactory {
logger.warn("查询流({}/{})是否有其它观看者时得到: {}", app, streamId, mediaInfo.getString("msg"));
return -1;
}
if ( code == 0 && ! mediaInfo.getBoolean("online")) {
if ( code == 0 && mediaInfo.getBoolean("online") != null && !mediaInfo.getBoolean("online")) {
logger.warn("查询流({}/{})是否有其它观看者时得到: {}", app, streamId, mediaInfo.getString("msg"));
return -1;
}