From 42a2772d1aa7493bcc4fac3e24ee8eda4eebc23d Mon Sep 17 00:00:00 2001 From: xubinbin <1323875150@qq.com> Date: 星期二, 12 十二月 2023 17:09:04 +0800 Subject: [PATCH] bugfix:请求头带token, SecurityUtils 获取用户id 一直为0 #1195 --- src/main/java/com/genersoft/iot/vmp/service/IInviteStreamService.java | 27 +++++++++++++++++++++++++-- 1 files changed, 25 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 old mode 100644 new mode 100755 index 439cdde..c06400d --- 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,7 @@ 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; /** * 璁板綍鍥芥爣鐐规挱鐨勭姸鎬侊紝鍖呮嫭瀹炴椂棰勮锛屼笅杞斤紝褰曞儚鍥炴斁 @@ -13,6 +13,8 @@ * 鏇存柊鐐规挱鐨勭姸鎬佷俊鎭� */ void updateInviteInfo(InviteInfo inviteInfo); + + InviteInfo updateInviteInfoForStream(InviteInfo inviteInfo, String stream); /** * 鑾峰彇鐐规挱鐨勭姸鎬佷俊鎭� @@ -54,10 +56,31 @@ /** * 娣诲姞涓�涓猧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); + + + /** + * 鑾峰彇MediaServer涓嬬殑娴佷俊鎭� + */ + InviteInfo getInviteInfoBySSRC(String ssrc); + + /** + * 鏇存柊ssrc + */ + InviteInfo updateInviteInfoForSSRC(InviteInfo inviteInfo, String ssrcInResponse); } -- Gitblit v1.8.0