From 241804f5f832c76d8855011ceea713eee4cbf15a Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期五, 03 十二月 2021 16:13:46 +0800 Subject: [PATCH] 优化redis存储,alarm默认关闭处理 --- src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java b/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java index 25743e1..3314fb2 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/IRedisCatchStorage.java @@ -121,13 +121,13 @@ /** * 鍦╮edis娣诲姞wvp鐨勪俊鎭� */ - void updateWVPInfo(String id, JSONObject jsonObject, int time); + void updateWVPInfo(JSONObject jsonObject, int time); /** * 鍙戦�佹帹娴佺敓鎴愪笌鎺ㄦ祦娑堝け娑堟伅 * @param jsonObject 娑堟伅鍐呭 */ - void sendStreamChangeMsg(JSONObject jsonObject); + void sendStreamChangeMsg(String type, JSONObject jsonObject); /** * 娣诲姞娴佷俊鎭埌redis @@ -135,7 +135,7 @@ * @param app * @param streamId */ - void addPushStream(MediaServerItem mediaServerItem, String app, String streamId, StreamInfo streamInfo); + void addStream(MediaServerItem mediaServerItem, String type, String app, String streamId, StreamInfo streamInfo); /** * 绉婚櫎娴佷俊鎭粠redis @@ -143,5 +143,13 @@ * @param app * @param streamId */ - void removePushStream(MediaServerItem mediaServerItem, String app, String streamId); + void removeStream(MediaServerItem mediaServerItem, String type, String app, String streamId); + + /** + * 寮�濮嬩笅杞藉綍鍍忔椂瀛樺叆 + * @param streamInfo + */ + boolean startDownload(StreamInfo streamInfo); + + StreamInfo queryDownloadByStreamId(String streamId); } -- Gitblit v1.8.0