From 7749ea3421f6cc48a59db04bc9babfb8a404d740 Mon Sep 17 00:00:00 2001
From: dsk <2514169858@qq.com>
Date: 星期日, 25 六月 2023 16:16:40 +0800
Subject: [PATCH] 新增接口超时时间配置,修复点播超时的情况下报错org.springframework.web.context.request.async.AsyncRequestTimeoutException
---
src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java | 62 ++++++++++++++++++++++++++++++-
1 files changed, 60 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java b/src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java
index 439cdde..1036efd 100644
--- a/src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java
+++ b/src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java
@@ -2,7 +2,9 @@
import com.genersoft.iot.vmp.common.InviteInfo;
import com.genersoft.iot.vmp.common.InviteSessionType;
-import com.genersoft.iot.vmp.service.bean.InviteErrorCallback;
+import com.genersoft.iot.vmp.service.bean.ErrorCallback;
+
+import java.util.List;
/**
* 璁板綍鍥芥爣鐐规挱鐨勭姸鎬侊紝鍖呮嫭瀹炴椂棰勮锛屼笅杞斤紝褰曞儚鍥炴斁
@@ -54,10 +56,66 @@
/**
* 娣诲姞涓�涓猧nvite鍥炶皟
*/
- void once(InviteSessionType type, String deviceId, String channelId, String stream, InviteErrorCallback<Object> callback);
+ void once(InviteSessionType type, String deviceId, String channelId, String stream, ErrorCallback<Object> callback);
/**
* 璋冪敤涓�涓猧nvite鍥炶皟
*/
void call(InviteSessionType type, String deviceId, String channelId, String stream, int code, String msg, Object data);
+
+ /**
+ * 娓呯┖涓�涓澶囩殑鎵�鏈塱nvite淇℃伅
+ */
+ void clearInviteInfo(String deviceId);
+
+ /**
+ * 缁熻鍚屼竴涓獄lm涓嬬殑鍥芥爣鏀舵祦涓暟
+ */
+ int getStreamInfoCount(String mediaServerId);
+
+
+ /*======================璁惧涓诲瓙鐮佹祦閫昏緫START=========================*/
+ /**
+ * 鑾峰彇鐐规挱鐨勭姸鎬佷俊鎭�
+ */
+ InviteInfo getInviteInfoByDeviceAndChannel(InviteSessionType type,
+ String deviceId,
+ String channelId,boolean isSubStream);
+
+ void removeInviteInfoByDeviceAndChannel(InviteSessionType inviteSessionType, String deviceId, String channelId,boolean isSubStream);
+
+ InviteInfo getInviteInfo(InviteSessionType type,
+ String deviceId,
+ String channelId,
+ boolean isSubStream,
+ String stream);
+
+ void removeInviteInfo(InviteSessionType type,
+ String deviceId,
+ String channelId,
+ boolean isSubStream,
+ String stream);
+
+ void once(InviteSessionType type, String deviceId, String channelId,boolean isSubStream, String stream, ErrorCallback<Object> callback);
+
+ void call(InviteSessionType type, String deviceId, String channelId,boolean isSubStream, String stream, int code, String msg, Object data);
+
+ void updateInviteInfoSub(InviteInfo inviteInfo);
+
+ /**
+ * 鑾峰彇鐐规挱鐨勭姸鎬佷俊鎭�
+ */
+ InviteInfo getInviteInfoByStream(InviteSessionType type, String stream,boolean isSubStream);
+
+ /**
+ * 鑾峰彇鐐规挱鐨勭姸鎬佷俊鎭�
+ */
+ List<Object> getInviteInfos(InviteSessionType type,
+ String deviceId,
+ String channelId,
+ String stream);
+ /*======================璁惧涓诲瓙鐮佹祦閫昏緫END=========================*/
+
+
+
}
--
Gitblit v1.8.0