panlinlin
2021-01-05 730a64be077b51add311b9d880bb23f5162253ec
src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorager.java
@@ -1,14 +1,10 @@
package com.genersoft.iot.vmp.storager;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSONObject;
import com.genersoft.iot.vmp.common.PageResult;
import com.genersoft.iot.vmp.common.StreamInfo;
import com.genersoft.iot.vmp.conf.MediaServerConfig;
import com.genersoft.iot.vmp.gb28181.bean.Device;
import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
import com.github.pagehelper.PageInfo;
/**    
 * @Description:视频设备数据存储接口
@@ -16,19 +12,6 @@
 * @date:   2020年5月6日 下午2:14:31     
 */
public interface IVideoManagerStorager {
   /**
    * 更新流媒体信息
    * @param mediaServerConfig
    * @return
    */
   public boolean updateMediaInfo(MediaServerConfig mediaServerConfig);
   /**
    * 获取流媒体信息
    * @return
    */
   public MediaServerConfig getMediaInfo();
   /**   
    * 根据设备ID判断设备是否存在
@@ -78,7 +61,7 @@
    * @param count 每页数量
    * @return
    */
   public PageResult queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, String online, int page, int count);
   public PageInfo queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, Boolean online, int page, int count);
   /**
    * 获取某个设备的通道列表
@@ -95,21 +78,20 @@
    */
   public DeviceChannel queryChannel(String deviceId, String channelId);
   /**
   /**
    * 获取多个设备
    *
    * @param deviceIds 设备ID数组
    * @param page 当前页数
    * @param count 每页数量
    * @return List<Device> 设备对象数组
    */
   public PageResult<Device> queryVideoDeviceList(String[] deviceIds, int page, int count);
   public PageInfo<Device> queryVideoDeviceList(int page, int count);
   /**
    * 获取多个设备
    *
    * @param deviceIds 设备ID数组
    * @return List<Device> 设备对象数组
    */
   public List<Device> queryVideoDeviceList(String[] deviceIds);
   public List<Device> queryVideoDeviceList();
   /**   
    * 删除设备
@@ -135,27 +117,6 @@
    */
   public boolean outline(String deviceId);
   /**
    * 开始播放时将流存入
    *
    * @param stream 流信息
    * @return
    */
   public boolean startPlay(StreamInfo stream);
   /**
    * 停止播放时删除
    *
    * @return
    */
   public boolean stopPlay(StreamInfo streamInfo);
   /**
    * 查找视频流
    *
    * @return
    */
   public StreamInfo queryPlay(StreamInfo streamInfo);
   /**
    * 查询子设备
@@ -166,12 +127,8 @@
    * @param count
    * @return
    */
    PageResult querySubChannels(String deviceId, String channelId, String query, Boolean hasSubChannel, String online, int page, int count);
   PageInfo querySubChannels(String deviceId, String channelId, String query, Boolean hasSubChannel, String online, int page, int count);
   /**
    * 更新缓存
    */
   public void updateCatch();
   /**
    * 清空通道
@@ -179,17 +136,4 @@
    */
   void cleanChannelsForDevice(String deviceId);
   StreamInfo queryPlayByStreamId(String streamId);
   StreamInfo queryPlayByDevice(String deviceId, String code);
   Map<String, StreamInfo> queryPlayByDeviceId(String deviceId);
   boolean startPlayback(StreamInfo streamInfo);
   boolean stopPlayback(StreamInfo streamInfo);
   StreamInfo queryPlaybackByDevice(String deviceId, String channelId);
   StreamInfo queryPlaybackByStreamId(String streamId);
}