wvp-GB28181-pro/src/main/java/com/genersoft/iot/vmp/service/IStreamPushService.java

120 lines
2.5 KiB
Java
Raw Normal View History

package com.genersoft.iot.vmp.service;
import com.genersoft.iot.vmp.gb28181.bean.GbStream;
import com.genersoft.iot.vmp.media.zlm.dto.StreamPushItem;
2024-03-22 16:45:18 +08:00
import com.genersoft.iot.vmp.media.zlm.dto.hook.OnStreamChangedHookParam;
import com.genersoft.iot.vmp.service.bean.StreamPushItemFromRedis;
2023-05-15 15:29:39 +08:00
import com.genersoft.iot.vmp.vmanager.bean.ResourceBaseInfo;
import com.github.pagehelper.PageInfo;
import java.util.List;
import java.util.Map;
2022-11-10 16:48:17 +08:00
/**
* @author lin
*/
public interface IStreamPushService {
/**
* ID
* @param stream
* @return
*/
boolean saveToGB(GbStream stream);
/**
* ID
* @param stream
* @return
*/
boolean removeFromGB(GbStream stream);
/**
*
*/
2022-02-07 14:12:34 +08:00
PageInfo<StreamPushItem> getPushList(Integer page, Integer count, String query, Boolean pushing, String mediaServerId);
2021-12-08 16:45:50 +08:00
List<StreamPushItem> getPushList(String mediaSererId);
2022-11-08 19:58:36 +08:00
StreamPushItem transform(OnStreamChangedHookParam item);
StreamPushItem getPush(String app, String streamId);
/**
*
* @param app
* @param streamId ID
*/
boolean stop(String app, String streamId);
2021-12-07 21:13:55 +08:00
/**
*
*/
2021-12-08 16:45:50 +08:00
void zlmServerOnline(String mediaServerId);
2021-12-07 21:13:55 +08:00
/**
* 线
*/
void zlmServerOffline(String mediaServerId);
/**
*
*/
2021-12-08 16:45:50 +08:00
void clean();
boolean saveToRandomGB();
2022-01-16 10:40:57 +08:00
/**
*
*/
2022-01-16 10:40:57 +08:00
void batchAdd(List<StreamPushItem> streamPushExcelDtoList);
/**
*
*/
boolean batchStop(List<GbStream> streamPushItems);
/**
*
*/
void batchAddForUpload(List<StreamPushItem> streamPushItems, Map<String, List<String[]>> streamPushItemsForAll);
/**
* 线
*/
void allStreamOffline();
/**
* 线
*/
void offline(List<StreamPushItemFromRedis> offlineStreams);
/**
* 线
*/
void online(List<StreamPushItemFromRedis> onlineStreams);
/**
*
*/
boolean add(StreamPushItem stream);
2022-08-18 16:17:23 +08:00
/**
* app+Streanm
* @return
*/
List<String> getAllAppAndStream();
/**
*
* @return
*/
2023-05-15 15:29:39 +08:00
ResourceBaseInfo getOverview();
2023-10-12 18:34:16 +08:00
Map<String, StreamPushItem> getAllAppAndStreamMap();
2024-04-16 00:10:38 +08:00
void updatePush(OnStreamChangedHookParam param);
}