From 26cd7dbaf9394ff26f5229b18cfdb72c203a6bc3 Mon Sep 17 00:00:00 2001 From: gaofw189 <gaofw189@chinatelecom.cn> Date: 星期二, 10 一月 2023 15:55:56 +0800 Subject: [PATCH] 修复WVP作为下级平台接收DeviceStatus指令固定响应的问题 --- src/main/java/com/genersoft/iot/vmp/service/IStreamProxyService.java | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 42 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/service/IStreamProxyService.java b/src/main/java/com/genersoft/iot/vmp/service/IStreamProxyService.java index 60f3303..de9613e 100644 --- a/src/main/java/com/genersoft/iot/vmp/service/IStreamProxyService.java +++ b/src/main/java/com/genersoft/iot/vmp/service/IStreamProxyService.java @@ -1,10 +1,10 @@ package com.genersoft.iot.vmp.service; -import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson2.JSONObject; import com.genersoft.iot.vmp.common.StreamInfo; import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem; import com.genersoft.iot.vmp.media.zlm.dto.StreamProxyItem; -import com.genersoft.iot.vmp.vmanager.bean.WVPResult; +import com.genersoft.iot.vmp.vmanager.bean.ResourceBaceInfo; import com.github.pagehelper.PageInfo; public interface IStreamProxyService { @@ -13,7 +13,7 @@ * 淇濆瓨瑙嗛浠g悊 * @param param */ - WVPResult<StreamInfo> save(StreamProxyItem param); + StreamInfo save(StreamProxyItem param); /** * 娣诲姞瑙嗛浠g悊鍒皕lm @@ -53,6 +53,16 @@ boolean start(String app, String stream); /** + * 鏇存柊鐘舵�� + * @param status 鐘舵�� + * @param app + * @param stream + */ + int updateStatus(boolean status, String app, String stream); + + + + /** * 鍋滅敤鐢ㄨ棰戜唬鐞� * @param app * @param stream @@ -71,4 +81,33 @@ * @return */ StreamProxyItem getStreamProxyByAppAndStream(String app, String streamId); + + + /** + * 鏂扮殑鑺傜偣鍔犲叆 + * @param mediaServerId + * @return + */ + void zlmServerOnline(String mediaServerId); + + /** + * 鑺傜偣绂荤嚎 + * @param mediaServerId + * @return + */ + void zlmServerOffline(String mediaServerId); + + void clean(); + + /** + * 鏇存柊浠g悊娴� + */ + boolean updateStreamProxy(StreamProxyItem streamProxyItem); + + /** + * 鑾峰彇缁熻淇℃伅 + * @return + */ + ResourceBaceInfo getOverview(); + } -- Gitblit v1.8.0