| | |
| | | package com.genersoft.iot.vmp.storager;
|
| | |
|
| | | import java.util.List;
|
| | | import java.util.Map;
|
| | |
|
| | | import com.genersoft.iot.vmp.common.StreamInfo;
|
| | | import com.genersoft.iot.vmp.gb28181.bean.Device;
|
| | | import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
|
| | | import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform;
|
| | | import com.genersoft.iot.vmp.vmanager.platform.bean.ChannelReduce;
|
| | | import com.github.pagehelper.PageInfo;
|
| | | import gov.nist.javax.sip.stack.NioTcpMessageProcessor;
|
| | |
|
| | | import javax.swing.event.ChangeEvent;
|
| | |
|
| | | /**
|
| | | * @Description:视频设备数据存储接口
|
| | |
| | | * @param channel 通道
|
| | | */
|
| | | public void updateChannel(String deviceId, DeviceChannel channel);
|
| | |
|
| | | /**
|
| | | * 开始播放
|
| | | * @param deviceId 设备id
|
| | | * @param channelId 通道ID
|
| | | * @param streamId 流地址
|
| | | */
|
| | | public void startPlay(String deviceId, String channelId, String streamId);
|
| | |
|
| | | /**
|
| | | * 停止播放
|
| | | * @param deviceId 设备id
|
| | | * @param channelId 通道ID
|
| | | */
|
| | | public void stopPlay(String deviceId, String channelId);
|
| | |
|
| | | /**
|
| | | * 获取设备
|
| | |
| | | */
|
| | | void cleanChannelsForDevice(String deviceId);
|
| | |
|
| | |
|
| | | /**
|
| | | * 更新上级平台
|
| | | * @param parentPlatform
|
| | | */
|
| | | boolean updateParentPlatform(ParentPlatform parentPlatform);
|
| | |
|
| | |
|
| | | /**
|
| | | * 添加上级平台
|
| | | * @param parentPlatform
|
| | | */
|
| | | boolean addParentPlatform(ParentPlatform parentPlatform);
|
| | |
|
| | | /**
|
| | | * 删除上级平台
|
| | | * @param parentPlatform
|
| | | */
|
| | | boolean deleteParentPlatform(ParentPlatform parentPlatform);
|
| | |
|
| | |
|
| | | /**
|
| | | * 分页获取上级平台
|
| | | * @param page
|
| | | * @param count
|
| | | * @return
|
| | | */
|
| | | PageInfo<ParentPlatform> queryParentPlatformList(int page, int count);
|
| | |
|
| | | /**
|
| | | * 获取所有已启用的平台
|
| | | * @return
|
| | | */
|
| | | List<ParentPlatform> queryEnableParentPlatformList(boolean enable);
|
| | |
|
| | | /**
|
| | | * 获取上级平台
|
| | | * @param platformGbId
|
| | | * @return
|
| | | */
|
| | | ParentPlatform queryParentPlatById(String platformGbId);
|
| | |
|
| | | /**
|
| | | * 所有平台离线
|
| | | */
|
| | | void outlineForAllParentPlatform();
|
| | |
|
| | | /**
|
| | | * 查询通道信息,不区分设备(已关联平台或全部)
|
| | | */
|
| | | PageInfo<ChannelReduce> queryAllChannelList(int page, int count, String query, Boolean online, Boolean channelType, String platformId, Boolean inPlatform);
|
| | |
|
| | | /**
|
| | | * 查询设备的通道信息
|
| | | */
|
| | | List<ChannelReduce> queryChannelListInParentPlatform(String platformId);
|
| | |
|
| | |
|
| | | /**
|
| | | * 更新上级平台的通道信息
|
| | | * @param platformId
|
| | | * @param channelReduces
|
| | | * @return
|
| | | */
|
| | | int updateChannelForGB(String platformId, List<ChannelReduce> channelReduces);
|
| | |
|
| | | /**
|
| | | * 移除上级平台的通道信息
|
| | | * @param platformId
|
| | | * @param channelReduces
|
| | | * @return
|
| | | */
|
| | | int delChannelForGB(String platformId, List<ChannelReduce> channelReduces);
|
| | |
|
| | |
|
| | | }
|