648540858
2021-11-12 eca1e05aeed3c51cce36bbce80c71bc3cbcea87d
src/main/java/com/genersoft/iot/vmp/storager/IVideoManagerStorager.java
@@ -1,15 +1,16 @@
package com.genersoft.iot.vmp.storager;
import java.util.List;
import com.genersoft.iot.vmp.gb28181.bean.*;
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.vmanager.platform.bean.ChannelReduce;
import com.genersoft.iot.vmp.vmanager.gb28181.platform.bean.ChannelReduce;
import com.github.pagehelper.PageInfo;
import java.util.List;
/**    
 * @Description:视频设备数据存储接口
 * @description:视频设备数据存储接口
 * @author: swwheihei
 * @date:   2020年5月6日 下午2:14:31     
 */
@@ -97,6 +98,13 @@
   public DeviceChannel queryChannel(String deviceId, String channelId);
   /**
    * 删除通道
    * @param deviceId 设备ID
    * @param channelId 通道ID
    */
   public int delChannel(String deviceId, String channelId);
   /**
    * 获取多个设备
    * @param page 当前页数
    * @param count 每页数量
@@ -134,6 +142,13 @@
    * @return true:更新成功  false:更新失败
    */
   public boolean outline(String deviceId);
   /**
    * 更新所有设备离线
    *
    * @return true:更新成功  false:更新失败
    */
   public boolean outlineForAll();
   /**
@@ -194,7 +209,7 @@
    * @param platformGbId
    * @return
    */
   ParentPlatform queryParentPlatById(String platformGbId);
   ParentPlatform queryParentPlatByServerGBId(String platformGbId);
   /**
    * 所有平台离线
@@ -352,4 +367,43 @@
    * @param streamId
    */
   void mediaOutline(String app, String streamId);
   /**
    * 设置平台在线/离线
    * @param online
    */
   void updateParentPlatformStatus(String platformGbID, boolean online);
   /**
    * 更新媒体节点
    * @param mediaServerItem
    */
   void updateMediaServer(MediaServerItem mediaServerItem);
   /**
    * 根据媒体ID获取启用/不启用的代理列表
    * @param id 媒体ID
    * @param b 启用/不启用
    * @return
    */
   List<StreamProxyItem> getStreamProxyListForEnableInMediaServer(String id, boolean b);
   /**
    * 根据通道ID获取其所在设备
    * @param channelId  通道ID
    * @return
    */
    Device queryVideoDeviceByChannelId(String channelId);
   /**
    * 通道上线
    * @param channelId 通道ID
    */
   void deviceChannelOnline(String deviceId, String channelId);
   /**
    * 通道离线
    * @param channelId 通道ID
    */
   void deviceChannelOffline(String deviceId, String channelId);
}