修复stream-none-reader-delay-ms为-1时不自动关闭流
This commit is contained in:
@@ -374,4 +374,6 @@ public interface IVideoManagerStorager {
|
||||
void updateMediaServer(MediaServerItem mediaServerItem);
|
||||
|
||||
List<StreamProxyItem> getStreamProxyListForEnableInMediaServer(String id, boolean b);
|
||||
|
||||
Device queryVideoDeviceByChannelId(String platformGbId);
|
||||
}
|
||||
|
||||
@@ -102,4 +102,7 @@ public interface DeviceChannelMapper {
|
||||
" </script>"})
|
||||
|
||||
List<ChannelReduce> queryChannelListInAll(String query, Boolean online, Boolean hasSubChannel, String platformId, Boolean inPlatform);
|
||||
|
||||
@Select("SELECT * FROM device_channel WHERE channelId=#{channelId}")
|
||||
List<DeviceChannel> queryChannelByChannelId(String channelId);
|
||||
}
|
||||
|
||||
@@ -623,4 +623,14 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager {
|
||||
public List<StreamProxyItem> getStreamProxyListForEnableInMediaServer(String id, boolean enable) {
|
||||
return streamProxyMapper.selectForEnableInMediaServer(id, enable);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Device queryVideoDeviceByChannelId(String channelId) {
|
||||
Device result = null;
|
||||
List<DeviceChannel> channelList = deviceChannelMapper.queryChannelByChannelId(channelId);
|
||||
if (channelList.size() == 1) {
|
||||
result = deviceMapper.getDeviceByDeviceId(channelList.get(0).getDeviceId());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user