| | |
| | | public boolean exists(String deviceId); |
| | | |
| | | /** |
| | | * 添加设备通道 |
| | | * |
| | | * @param deviceId 设备id |
| | | * @param channel 通道 |
| | | */ |
| | | public void updateChannel(String deviceId, DeviceChannel channel); |
| | | |
| | | /** |
| | | * 批量添加设备通道 |
| | | * |
| | | * @param deviceId 设备id |
| | | * @param channels 多个通道 |
| | | */ |
| | | public int updateChannels(String deviceId, List<DeviceChannel> channels); |
| | | |
| | | /** |
| | | * 开始播放 |
| | | * @param deviceId 设备id |
| | | * @param channelId 通道ID |
| | |
| | | */ |
| | | public List<Device> queryVideoDeviceList(); |
| | | |
| | | /** |
| | | * 删除设备 |
| | | * |
| | | * @param deviceId 设备ID |
| | | * @return true:删除成功 false:删除失败 |
| | | */ |
| | | public boolean delete(String deviceId); |
| | | |
| | | /** |
| | | * 更新设备在线 |
| | | * |
| | | * @param deviceId 设备ID |
| | | * @return true:更新成功 false:更新失败 |
| | | */ |
| | | public boolean online(String deviceId); |
| | | |
| | | /** |
| | | * 更新设备离线 |
| | | * |
| | | * @param deviceId 设备ID |
| | | * @return true:更新成功 false:更新失败 |
| | | */ |
| | | public boolean outline(String deviceId); |
| | | |
| | | /** |
| | | * 更新所有设备离线 |
| | | * |
| | | * @return true:更新成功 false:更新失败 |
| | | */ |
| | | public boolean outlineForAll(); |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | boolean deleteParentPlatform(ParentPlatform parentPlatform); |
| | | |
| | | |
| | | /** |
| | | * 分页获取上级平台 |
| | | * @param page |
| | | * @param count |
| | | * @return |
| | | */ |
| | | PageInfo<ParentPlatform> queryParentPlatformList(int page, int count); |
| | | |
| | | /** |
| | | * 获取所有已启用的平台 |
| | | * @return |
| | |
| | | List<DeviceChannelInPlatform> queryChannelListInParentPlatform(String platformId); |
| | | |
| | | |
| | | /** |
| | | * 更新上级平台的通道信息 |
| | | * @param platformId |
| | | * @param channelReduces |
| | | * @return |
| | | */ |
| | | int updateChannelForGB(String platformId, List<ChannelReduce> channelReduces, String catalogId); |
| | | |
| | | /** |
| | | * 移除上级平台的通道信息 |
| | |
| | | public int clearMobilePositionsByDeviceId(String deviceId); |
| | | |
| | | /** |
| | | * 新增代理流 |
| | | * @param streamProxyDto |
| | | * @return |
| | | */ |
| | | public boolean addStreamProxy(StreamProxyItem streamProxyDto); |
| | | |
| | | /** |
| | | * 更新代理流 |
| | | * @param streamProxyDto |
| | | * @return |
| | | */ |
| | | public boolean updateStreamProxy(StreamProxyItem streamProxyDto); |
| | | |
| | | /** |
| | | * 移除代理流 |
| | | * @param app |
| | | * @param stream |
| | |
| | | * @param platformId |
| | | * @return |
| | | */ |
| | | List<GbStream> queryGbStreamListInPlatform(String platformId); |
| | | |
| | | /** |
| | | * 批量更新推流列表 |
| | | * @param streamPushItems |
| | | */ |
| | | void updateMediaList(List<StreamPushItem> streamPushItems); |
| | | |
| | | /** |
| | | * 更新单个推流 |
| | | * @param streamPushItem |
| | | */ |
| | | void updateMedia(StreamPushItem streamPushItem); |
| | | List<DeviceChannel> queryGbStreamListInPlatform(String platformId); |
| | | |
| | | /** |
| | | * 移除单个推流 |
| | |
| | | */ |
| | | int removeMedia(String app, String stream); |
| | | |
| | | |
| | | /** |
| | | * 获取但个推流 |
| | | * @param app |
| | | * @param stream |
| | | * @return |
| | | */ |
| | | StreamPushItem getMedia(String app, String stream); |
| | | |
| | | |
| | | /** |
| | | * 清空推流列表 |
| | | */ |
| | | void clearMediaList(); |
| | | |
| | | /** |
| | | * 设置流离线 |
| | | * @param app |
| | | * @param streamId |
| | | */ |
| | | int mediaOutline(String app, String streamId); |
| | | int mediaOffline(String app, String streamId); |
| | | |
| | | /** |
| | | * 设置流上线 |
| | | */ |
| | | int mediaOnline(String app, String streamId); |
| | | |
| | | /** |
| | | * 设置平台在线/离线 |
| | | * @param online |
| | | */ |
| | | void updateParentPlatformStatus(String platformGbID, boolean online); |
| | | |
| | |
| | | |
| | | int setDefaultCatalog(String platformId, String catalogId); |
| | | |
| | | List<PlatformCatalog> queryCatalogInPlatform(String serverGBId); |
| | | List<DeviceChannel> queryCatalogInPlatform(String serverGBId); |
| | | |
| | | int delRelation(PlatformCatalog platformCatalog); |
| | | |
| | |
| | | |
| | | List<ChannelSourceInfo> getChannelSource(String platformId, String gbId); |
| | | |
| | | void updateChannelPotion(String deviceId, String channelId, double longitude, double latitude); |
| | | void updateChannelPosition(DeviceChannel deviceChannel); |
| | | |
| | | void cleanContentForPlatform(String serverGBId); |
| | | |
| | | List<DeviceChannel> queryChannelWithCatalog(String serverGBId); |
| | | } |