默认推流通道始终在线

This commit is contained in:
648540858
2022-04-11 14:59:31 +08:00
parent 81f1b8ee25
commit fcf8c40150
10 changed files with 55 additions and 39 deletions

View File

@@ -396,7 +396,7 @@ public class ZLMHttpHookListener {
}
}
if (gbStreams.size() > 0) {
eventPublisher.catalogEventPublishForStream(null, gbStreams, CatalogEvent.ON);
// eventPublisher.catalogEventPublishForStream(null, gbStreams, CatalogEvent.ON);
}
}else {
@@ -408,7 +408,7 @@ public class ZLMHttpHookListener {
}
GbStream gbStream = storager.getGbStream(app, streamId);
if (gbStream != null) {
eventPublisher.catalogEventPublishForStream(null, gbStream, CatalogEvent.OFF);
// eventPublisher.catalogEventPublishForStream(null, gbStream, CatalogEvent.OFF);
}
zlmMediaListManager.removeMedia(app, streamId);
}

View File

@@ -204,6 +204,7 @@ public class ZLMMediaListManager {
if (streamProxyItem == null) {
result = storager.removeMedia(app, streamId);
}else {
// TODO 暂不设置为离线
result =storager.mediaOutline(app, streamId);
}
return result;