|  |  | 
 |  |  | import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
 | 
 |  |  | import com.genersoft.iot.vmp.media.zlm.dto.StreamProxyItem;
 | 
 |  |  | import com.genersoft.iot.vmp.media.zlm.dto.StreamPushItem;
 | 
 |  |  | import com.genersoft.iot.vmp.service.bean.GPSMsgInfo;
 | 
 |  |  | import com.genersoft.iot.vmp.storager.dao.dto.ChannelSourceInfo;
 | 
 |  |  | import com.genersoft.iot.vmp.vmanager.bean.DeviceChannelTree;
 | 
 |  |  | import com.genersoft.iot.vmp.vmanager.gb28181.platform.bean.ChannelReduce;
 | 
 |  |  | import com.github.pagehelper.PageInfo;
 | 
 |  |  | 
 | 
 |  |  | 
 |  |  |    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
 | 
 |  |  | 
 |  |  |     * @return
 | 
 |  |  |     */
 | 
 |  |  |    public PageInfo queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, Boolean online, int page, int count);
 | 
 |  |  | 	 | 
 |  |  |    public List<DeviceChannel> queryChannelsByDeviceIdWithStartAndLimit(String deviceId, String query, Boolean hasSubChannel, Boolean online, int start, int limit);
 | 
 |  |  | 
 | 
 |  |  |    /**
 | 
 |  |  |     *  获取某个设备的通道树
 | 
 |  |  |     * @param deviceId 设备ID
 | 
 |  |  |     * @return
 | 
 |  |  |     */
 | 
 |  |  |    List<DeviceChannelTree> tree(String deviceId);
 | 
 |  |  | 
 | 
 |  |  |    /**
 | 
 |  |  |     * 获取某个设备的通道列表
 | 
 |  |  | 
 |  |  |     * @return
 | 
 |  |  |     */
 | 
 |  |  |    public List<DeviceChannel> queryChannelsByDeviceId(String deviceId);
 | 
 |  |  |    public List<DeviceChannel> queryOnlineChannelsByDeviceId(String deviceId);
 | 
 |  |  | 
 | 
 |  |  |    /**
 | 
 |  |  |     * 获取某个设备的通道
 | 
 |  |  | 
 |  |  |    /**
 | 
 |  |  |     * 查询通道信息,不区分设备(已关联平台或全部)
 | 
 |  |  |     */
 | 
 |  |  |    PageInfo<ChannelReduce> queryAllChannelList(int page, int count, String query, Boolean online, Boolean channelType, String platformId, Boolean inPlatform);
 | 
 |  |  |    PageInfo<ChannelReduce> queryAllChannelList(int page, int count, String query, Boolean online, Boolean channelType, String platformId, String catalogId);
 | 
 |  |  | 
 | 
 |  |  |    /**
 | 
 |  |  |     * 查询设备的通道信息
 | 
 |  |  | 
 |  |  |     * @param channelReduces
 | 
 |  |  |     * @return
 | 
 |  |  |     */
 | 
 |  |  |    int updateChannelForGB(String platformId, List<ChannelReduce> channelReduces);
 | 
 |  |  |    int updateChannelForGB(String platformId, List<ChannelReduce> channelReduces, String catalogId);
 | 
 |  |  | 
 | 
 |  |  |    /**
 | 
 |  |  |     *  移除上级平台的通道信息
 | 
 |  |  | 
 |  |  | 
 | 
 |  |  | 
 | 
 |  |  |     DeviceChannel queryChannelInParentPlatform(String platformId, String channelId);
 | 
 |  |  | 
 | 
 |  |  |     List<PlatformCatalog> queryChannelInParentPlatformAndCatalog(String platformId, String catalogId);
 | 
 |  |  |     List<PlatformCatalog> queryStreamInParentPlatformAndCatalog(String platformId, String catalogId);
 | 
 |  |  | 
 | 
 |  |  |     Device queryVideoDeviceByPlatformIdAndChannelId(String platformId, String channelId);
 | 
 |  |  | 
 | 
 |  |  | 
 |  |  |     * @param channelId
 | 
 |  |  |     * @return
 | 
 |  |  |     */
 | 
 |  |  |    List<GbStream> queryStreamInParentPlatform(String platformId, String channelId);
 | 
 |  |  |    GbStream queryStreamInParentPlatform(String platformId, String channelId);
 | 
 |  |  | 
 | 
 |  |  |    /**
 | 
 |  |  |     * 获取平台关联的直播流
 | 
 |  |  | 
 |  |  |    void updateParentPlatformStatus(String platformGbID, boolean online);
 | 
 |  |  | 
 | 
 |  |  |    /**
 | 
 |  |  |     * 更新媒体节点
 | 
 |  |  |     * @param mediaServerItem
 | 
 |  |  |     */
 | 
 |  |  |    void updateMediaServer(MediaServerItem mediaServerItem);
 | 
 |  |  | 
 | 
 |  |  |    /**
 | 
 |  |  |     * 根据媒体ID获取启用/不启用的代理列表
 | 
 |  |  |     * @param id 媒体ID
 | 
 |  |  |     * @param b 启用/不启用
 | 
 |  |  |     * @param enable 启用/不启用
 | 
 |  |  |     * @param status 状态
 | 
 |  |  |     * @return
 | 
 |  |  |     */
 | 
 |  |  |    List<StreamProxyItem> getStreamProxyListForEnableInMediaServer(String id, boolean b);
 | 
 |  |  |    List<StreamProxyItem> getStreamProxyListForEnableInMediaServer(String id,  boolean enable, boolean status);
 | 
 |  |  | 
 | 
 |  |  |    /**
 | 
 |  |  |     * 根据通道ID获取其所在设备
 | 
 |  |  | 
 |  |  |     * @return
 | 
 |  |  |     */
 | 
 |  |  |     StreamProxyItem getStreamProxyByAppAndStream(String app, String streamId);
 | 
 |  |  | 
 | 
 |  |  |    /**
 | 
 |  |  |     * catlog查询结束后完全重写通道信息
 | 
 |  |  |     * @param deviceId
 | 
 |  |  |     * @param deviceChannelList
 | 
 |  |  |     */
 | 
 |  |  |    boolean resetChannels(String deviceId, List<DeviceChannel> deviceChannelList);
 | 
 |  |  | 
 | 
 |  |  |    /**
 | 
 |  |  |     * 获取目录信息
 | 
 |  |  |     * @param platformId
 | 
 |  |  |     * @param parentId
 | 
 |  |  |     * @return
 | 
 |  |  |     */
 | 
 |  |  |     List<PlatformCatalog> getChildrenCatalogByPlatform(String platformId, String parentId);
 | 
 |  |  | 
 | 
 |  |  |    int addCatalog(PlatformCatalog platformCatalog);
 | 
 |  |  | 
 | 
 |  |  |    PlatformCatalog getCatalog(String id);
 | 
 |  |  | 
 | 
 |  |  |    int delCatalog(String id);
 | 
 |  |  | 
 | 
 |  |  |    int updateCatalog(PlatformCatalog platformCatalog);
 | 
 |  |  | 
 | 
 |  |  |    int setDefaultCatalog(String platformId, String catalogId);
 | 
 |  |  | 
 | 
 |  |  |    List<PlatformCatalog> queryCatalogInPlatform(String serverGBId);
 | 
 |  |  | 
 | 
 |  |  |     int delRelation(PlatformCatalog platformCatalog);
 | 
 |  |  | 
 | 
 |  |  |    int updateStreamGPS(List<GPSMsgInfo> gpsMsgInfo);
 | 
 |  |  | 
 | 
 |  |  |    List<ParentPlatform> queryPlatFormListForGBWithGBId(String channelId, List<String> platforms);
 | 
 |  |  | 
 | 
 |  |  |    List<ParentPlatform> queryPlatFormListForStreamWithGBId(String app, String stream, List<String> platforms);
 | 
 |  |  | 
 | 
 |  |  |    GbStream getGbStream(String app, String streamId);
 | 
 |  |  | 
 | 
 |  |  |    void delCatalogByPlatformId(String serverGBId);
 | 
 |  |  | 
 | 
 |  |  |    void delRelationByPlatformId(String serverGBId);
 | 
 |  |  | 
 | 
 |  |  |     PlatformCatalog queryDefaultCatalogInPlatform(String platformId);
 | 
 |  |  | 
 | 
 |  |  |    List<ChannelSourceInfo> getChannelSource(String platformId, String gbId);
 | 
 |  |  | }
 |