默认推流通道始终在线
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -204,6 +204,7 @@ public class ZLMMediaListManager {
|
||||
if (streamProxyItem == null) {
|
||||
result = storager.removeMedia(app, streamId);
|
||||
}else {
|
||||
// TODO 暂不设置为离线
|
||||
result =storager.mediaOutline(app, streamId);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user